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

/freebsd-11-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.c898 leapyear = isleap(year);
1102 newfirst += year_lengths[isleap(year)] *
1645 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) {
1689 idays += year_lengths[isleap(y)];
1691 while (idays >= year_lengths[isleap(y)]) {
1692 idays -= year_lengths[isleap(y)];
1720 ip = mon_lengths[isleap(y)];
1875 yourtm.tm_mday += year_lengths[isleap(li)];
1879 yourtm.tm_mday -= year_lengths[isleap(li)];
1884 i = mon_lengths[isleap(
[all...]
/freebsd-11-stable/usr.bin/calendar/
H A Dostern.c65 if (isleap(year))
H A Dpaskha.c66 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.c139 cumday = cumdaytab[isleap(y)];
197 monthdays = monthdaytab[isleap(y1)];
215 monthdays = monthdaytab[isleap(y1)];
222 monthdays = monthdaytab[isleap(y)];
227 monthdays = monthdaytab[isleap(y2)];
H A Dcalendar.h61 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
H A Dsunpos.c108 if (inMM <= 2 && isleap(inYY))
224 cumdays = cumdaytab[isleap(year)];
377 cumdays = cumdaytab[isleap(year)];
378 monthdays = monthdaytab[isleap(year)];
H A Dparsedata.c501 yearinfo->monthdays = monthdaytab[isleap(year)];
1053 int *cumdays = cumdaytab[isleap(year)];
/freebsd-11-stable/stand/efi/libefi/
H A Dtime.c57 #define isleap(y) (((y) % 4) == 0 && \ macro
115 lyear = isleap(efi_time->Year);
121 lyear = isleap(efi_time->Year);
175 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
183 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] *
/freebsd-11-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-11-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-11-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 +
H A Dntp_calendar.c966 int isleap
975 /* convert 'isleap' to number of defective days */
976 isleap = 1 + !isleap;
978 if (eyd >= 61 - isleap)
979 eyd += isleap;
/freebsd-11-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-11-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-11-stable/usr.bin/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-11-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-11-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-11-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 285 milliseconds