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

/freebsd-9.3-release/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)] *
1660 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) {
1704 idays += year_lengths[isleap(y)];
1706 while (idays >= year_lengths[isleap(y)]) {
1707 idays -= year_lengths[isleap(y)];
1735 ip = mon_lengths[isleap(y)];
1900 yourtm.tm_mday += year_lengths[isleap(li)];
1904 yourtm.tm_mday -= year_lengths[isleap(li)];
1909 i = mon_lengths[isleap(
[all...]
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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.c138 cumday = cumdaytab[isleap(y)];
196 mondays = mondaytab[isleap(y1)];
214 mondays = mondaytab[isleap(y1)];
221 mondays = mondaytab[isleap(y)];
226 mondays = mondaytab[isleap(y2)];
H A Dcalendar.h61 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
H A Dsunpos.c106 if (inMM <= 2 && isleap(inYY))
222 cumdays = cumdaytab[isleap(year)];
375 cumdays = cumdaytab[isleap(year)];
376 monthdays = mondaytab[isleap(year)];
H A Dparsedata.c460 yearinfo->mondays = mondaytab[isleap(year)];
1002 int *cumdays = cumdaytab[isleap(year)];
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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)
442 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
451 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-9.3-release/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 207 milliseconds