Searched refs:isleap (Results 1 - 22 of 22) sorted by path

/netbsd-current/external/bsd/unbound/dist/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)]) {
/netbsd-current/external/gpl2/rcs/dist/src/
H A Dmaketime.c50 static int isleap P((int));
64 isleap(y) function
82 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN));
217 - (tm->tm_mon<2 || ! isleap(tm->tm_year + TM_YEAR_ORIGIN));
/netbsd-current/external/bsd/libbind/dist/nameser/
H A Dns_date.c86 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
97 if (time.tm_mon > 1 && isleap(1900+time.tm_year))
103 if (isleap(1900+i))
/netbsd-current/lib/libresolv/
H A Dns_date.c83 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
94 if (tim.tm_mon > 1 && isleap(1900+tim.tm_year))
100 if (isleap(1900+i))
/netbsd-current/sys/arch/i386/stand/efiboot/
H A Defigetsecs.c33 #define isleap(_y) (((_y) % 4) == 0 && (((_y) % 100) != 0 || ((_y) % 400) == 0)) macro
40 if (isleap(y))
43 r += daytab[isleap(t.Year) ? 1 : 0][t.Month] + t.Day;
/netbsd-current/sys/arch/ia64/stand/efi/libefi/
H A Dtime.c60 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
124 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
132 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY);
/netbsd-current/sys/arch/ia64/stand/ia64/ski/
H A Dtime.c60 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
135 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
143 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY);
/netbsd-current/bin/date/
H A Ddate.c321 if (isleap(lt->tm_year + TM_YEAR_BASE)) {
/netbsd-current/external/bsd/file/dist/src/
H A Dcdf_time.c47 #define isleap(y) ((((y) % 4) == 0) && \ macro
64 days += isleap(y) + 365;
78 int sub = mdays[m] + (m == 1 && isleap(year));
96 if (m == 1 && isleap(year))
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dmktime.c91 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
207 year_lengths[isleap(yourtm.tm_year + TM_YEAR_BASE)];
210 i = mon_lengths[isleap(yourtm.tm_year +
H A Dntp_calendar.c968 int isleap
977 /* convert 'isleap' to number of defective days */
978 isleap = 1 + !isleap;
980 if (eyd >= 61 - isleap)
981 eyd += isleap;
/netbsd-current/external/bsd/ntp/dist/ntpd/
H A Drefclock_wwv.c2223 int minute, day, isleap; local
2263 isleap = up->decvec[YR].digit & 0x3;
2265 if ((day == (isleap ? 182 : 183) || day == (isleap ?
2292 if (day != (isleap ? 365 : 366))
/netbsd-current/include/
H A Dtzfile.h163 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
166 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
167 ** isleap(y) == isleap(y % 400)
169 ** isleap(a + b) == isleap((a + b) % 400)
171 ** isleap(a + b) == isleap(a % 400 + b % 400)
177 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
/netbsd-current/lib/libc/time/
H A Dlocaltime.c1062 leapyear = isleap(year);
1245 = year_lengths[isleap(yearbeg - 1)] * SECSPERDAY;
1256 = year_lengths[isleap(yearbeg)] * SECSPERDAY;
1275 yearsecs = (year_lengths[isleap(year)]
1884 while (year_lengths[isleap(y)] <= idays) {
1935 ip = mon_lengths[isleap(y)];
2127 yourtm.tm_mday += year_lengths[isleap(li)];
2131 yourtm.tm_mday -= year_lengths[isleap(li)];
2136 i = mon_lengths[isleap(y)][yourtm.tm_mon];
H A Dprivate.h1050 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
1053 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
1054 ** isleap(y) == isleap(y % 400)
1056 ** isleap(a + b) == isleap((a + b) % 400)
1058 ** isleap(a + b) == isleap(a % 400 + b % 400)
1064 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dstrptime.c113 (isleap(yr) ? 6 : 0) + 1) % 7;
693 int isleap; local
698 isleap = isleap_sum(tm->tm_year, TM_YEAR_BASE);
699 while (tm->tm_yday >= start_of_month[isleap][i])
703 tm->tm_yday -= start_of_month[isleap][12];
712 isleap = isleap_sum(tm->tm_year, TM_YEAR_BASE);
714 start_of_month[isleap][tm->tm_mon] + 1;
H A Dzdump.c696 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
712 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR;
H A Dzic.c2018 i = len_years[isleap(j)];
2022 i = -len_years[isleap(j)];
2033 i = len_months[isleap(year)][j];
2039 day <= 0 || day > len_months[isleap(year)][month]) {
3793 i = len_years[isleap(y)];
3798 i = len_months[isleap(y)][m];
3803 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) {
3831 if (i < 0 || i >= len_months[isleap(y)][m]) {
/netbsd-current/lib/libutil/
H A Dparsedate.y486 #define isleap(yr) (((yr) & 3) == 0 && (((yr) % 100) != 0 || \
953 ((tm.tm_mon==1) ? isleap(tm.tm_year) : 0)))
/netbsd-current/sys/stand/efiboot/
H A Defigetsecs.c37 #define isleap(_y) (((_y) % 4) == 0 && (((_y) % 100) != 0 || ((_y) % 400) == 0)) macro
44 if (isleap(y))
47 r += daytab[isleap(t.Year) ? 1 : 0][t.Month] + t.Day;
/netbsd-current/tests/lib/libutil/
H A Dt_parsedate.c303 #define isleap(yr) (((yr) & 3) == 0 && (((yr) % 100) != 0 || \ macro
380 tm.tm_mday > 28 + isleap(tm.tm_year))
381 tm.tm_mday = 28 + isleap(tm.tm_year);
391 tm.tm_mday > 28 + isleap(tm.tm_year + 1))
392 tm.tm_mday = 28 + isleap(tm.tm_year + 1);
401 tm.tm_mday > 28 + isleap(tm.tm_year))
402 tm.tm_mday = 28 + isleap(tm.tm_year);
412 tm.tm_mday > 28 + isleap(tm.tm_year + 1))
413 tm.tm_mday = 28 + isleap(tm.tm_year + 1);
423 if (tm.tm_mon == 1 && tm.tm_mday > 28 + isleap(t
[all...]
/netbsd-current/usr.bin/calendar/
H A Dcalendar.c246 if (isleap(tp->tm_year + TM_YEAR_BASE)) {

Completed in 353 milliseconds