Searched refs:isleap (Results 1 - 21 of 21) sorted by relevance

/freebsd-10-stable/contrib/tzcode/stdtime/
H A Dtzfile.h168 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
171 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
172 ** isleap(y) == isleap(y % 400)
174 ** isleap(a + b) == isleap((a + b) % 400)
176 ** isleap(a + b) == isleap(a % 400 + b % 400)
182 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dlocaltime.c900 leapyear = isleap(year);
1104 newfirst += year_lengths[isleap(year)] *
1659 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) {
1703 idays += year_lengths[isleap(y)];
1705 while (idays >= year_lengths[isleap(y)]) {
1706 idays -= year_lengths[isleap(y)];
1734 ip = mon_lengths[isleap(y)];
1899 yourtm.tm_mday += year_lengths[isleap(li)];
1903 yourtm.tm_mday -= year_lengths[isleap(li)];
1908 i = mon_lengths[isleap(
[all...]
/freebsd-10-stable/sys/boot/ia64/ski/
H A Dtime.c56 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
131 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
139 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY);
/freebsd-10-stable/sys/boot/efi/libefi/
H A Dtime.c57 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
121 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
129 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY);
/freebsd-10-stable/usr.bin/calendar/
H A Dostern.c63 if (isleap(year))
H A Dpaskha.c64 cumday = cumdaytab[isleap(R)];
H A Dpom.c76 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
138 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR;
148 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR;
158 yeardays = 1 + (isleap(year) ? DAYSPERLEAPYEAR : DAYSPERYEAR); /* reuse */
H A Ddates.c137 cumday = cumdaytab[isleap(y)];
195 monthdays = monthdaytab[isleap(y1)];
213 monthdays = monthdaytab[isleap(y1)];
220 monthdays = monthdaytab[isleap(y)];
225 monthdays = monthdaytab[isleap(y2)];
H A Dsunpos.c106 if (inMM <= 2 && isleap(inYY))
222 cumdays = cumdaytab[isleap(year)];
375 cumdays = cumdaytab[isleap(year)];
376 monthdays = monthdaytab[isleap(year)];
H A Dcalendar.h61 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
H A Dparsedata.c499 yearinfo->monthdays = monthdaytab[isleap(year)];
1045 int *cumdays = cumdaytab[isleap(year)];
/freebsd-10-stable/contrib/file/src/
H A Dcdf_time.c41 #define isleap(y) ((((y) % 4) == 0) && \ macro
58 days += isleap(y) + 365;
72 int sub = mdays[m] + (m == 1 && isleap(year));
90 if (m == 1 && isleap(year))
/freebsd-10-stable/contrib/unbound/compat/
H A Dgmtime_r.c33 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
80 while (days < 0 || days >= (long) year_lengths[yleap = isleap(y)]) {
/freebsd-10-stable/contrib/ntp/libntp/
H A Dmktime.c89 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
205 year_lengths[isleap(yourtm.tm_year + TM_YEAR_BASE)];
208 i = mon_lengths[isleap(yourtm.tm_year +
/freebsd-10-stable/contrib/netbsd-tests/lib/libutil/
H A Dt_parsedate.c253 #define isleap(yr) (((yr) & 3) == 0 && (((yr) % 100) != 0 || \ macro
330 tm.tm_mday > 28 + isleap(tm.tm_year))
331 tm.tm_mday = 28 + isleap(tm.tm_year);
341 tm.tm_mday > 28 + isleap(tm.tm_year + 1))
342 tm.tm_mday = 28 + isleap(tm.tm_year + 1);
351 tm.tm_mday > 28 + isleap(tm.tm_year))
352 tm.tm_mday = 28 + isleap(tm.tm_year);
362 tm.tm_mday > 28 + isleap(tm.tm_year + 1))
363 tm.tm_mday = 28 + isleap(tm.tm_year + 1);
373 if (tm.tm_mon == 1 && tm.tm_mday > 28 + isleap(t
[all...]
/freebsd-10-stable/gnu/usr.bin/rcs/lib/
H A Dmaketime.c48 static int isleap P((int));
62 isleap(y) function
80 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN));
215 - (tm->tm_mon<2 || ! isleap(tm->tm_year + TM_YEAR_ORIGIN));
/freebsd-10-stable/games/pom/
H A Dpom.c74 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
139 days += isleap(1900 + cnt) ? 366 : 365;
/freebsd-10-stable/lib/libc/stdtime/
H A Dstrptime.c82 ((year % 100) / 4) + (isleap(year) ? 6 : 0) + 1) % 7);
615 tm->tm_yday = start_of_month[isleap(tm->tm_year +
649 start_of_month[isleap(tm->tm_year +
655 start_of_month[isleap(tm->tm_year +
664 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)]
/freebsd-10-stable/contrib/tzcode/zic/
H A Dzdump.c87 #ifndef isleap
88 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
89 #endif /* !defined isleap */
95 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
443 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
452 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
H A Dzic.c1134 i = len_years[isleap(j)];
1138 i = -len_years[isleap(j)];
1149 i = len_months[isleap(year)][j];
1155 day <= 0 || day > len_months[isleap(year)][month]) {
2543 i = len_years[isleap(y)];
2547 i = -len_years[isleap(y)];
2552 i = len_months[isleap(y)][m];
2557 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) {
2594 if (i < 0 || i >= len_months[isleap(y)][m]) {
/freebsd-10-stable/contrib/ntp/ntpd/
H A Drefclock_wwv.c2221 int minute, day, isleap; local
2261 isleap = up->decvec[YR].digit & 0x3;
2263 if ((day == (isleap ? 182 : 183) || day == (isleap ?
2290 if (day != (isleap ? 365 : 366))

Completed in 270 milliseconds