Home
last modified time | relevance | path

Searched refs:isleap (Results 1 – 22 of 22) sorted by relevance

/freebsd/stand/efi/libefi/
H A Dtime.c54 #define isleap(y) (((y) % 4) == 0 && \ macro
112 lyear = isleap(efi_time->Year); in to_efi_time()
118 lyear = isleap(efi_time->Year); in to_efi_time()
172 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY); in from_efi_time()
180 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * in from_efi_time()
/freebsd/contrib/netbsd-tests/lib/libutil/
H A Dt_parsedate.c253 #define isleap(yr) (((yr) & 3) == 0 && (((yr) % 100) != 0 || \ in ATF_TC_BODY() macro
330 tm.tm_mday > 28 + isleap(tm.tm_year)) in ATF_TC_BODY()
331 tm.tm_mday = 28 + isleap(tm.tm_year); in ATF_TC_BODY()
341 tm.tm_mday > 28 + isleap(tm.tm_year + 1)) in ATF_TC_BODY()
342 tm.tm_mday = 28 + isleap(tm.tm_year + 1); in ATF_TC_BODY()
351 tm.tm_mday > 28 + isleap(tm.tm_year)) in ATF_TC_BODY()
352 tm.tm_mday = 28 + isleap(tm.tm_year); in ATF_TC_BODY()
362 tm.tm_mday > 28 + isleap(tm.tm_year + 1)) in ATF_TC_BODY()
363 tm.tm_mday = 28 + isleap(tm.tm_year + 1); in ATF_TC_BODY()
373 if (tm.tm_mon == 1 && tm.tm_mday > 28 + isleap(tm.tm_year)) in ATF_TC_BODY()
[all …]
/freebsd/contrib/file/src/
H A Dcdf_time.c41 #define isleap(y) ((((y) % 4) == 0) && \ macro
58 days += isleap(y) + 365; in cdf_getdays()
72 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday()
90 if (m == 1 && isleap(year)) in cdf_getmonth()
/freebsd/usr.bin/calendar/
H A Dpom.c64 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
126 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR; in fpom()
136 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR; in fpom()
146 yeardays = 1 + (isleap(year) ? DAYSPERLEAPYEAR : DAYSPERYEAR); /* reuse */ in fpom()
H A Ddates.c138 cumday = cumdaytab[isleap(y)]; in createdate()
196 monthdays = monthdaytab[isleap(y1)]; in generatedates()
214 monthdays = monthdaytab[isleap(y1)]; in generatedates()
221 monthdays = monthdaytab[isleap(y)]; in generatedates()
226 monthdays = monthdaytab[isleap(y2)]; in generatedates()
H A Dsunpos.c106 if (inMM <= 2 && isleap(inYY)) in sunpos()
222 cumdays = cumdaytab[isleap(year)]; in fequinoxsolstice()
375 cumdays = cumdaytab[isleap(year)]; in calculatesunlongitude30()
376 monthdays = monthdaytab[isleap(year)]; in calculatesunlongitude30()
H A Dostern.c63 if (isleap(year)) in easter()
H A Dpaskha.c64 cumday = cumdaytab[isleap(R)]; in paskha()
H A Dcalendar.h64 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
H A Dparsedata.c498 yearinfo->monthdays = monthdaytab[isleap(year)]; in parsedaymonth()
1050 int *cumdays = cumdaytab[isleap(year)]; in floattoday()
/freebsd/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)]; in time2()
208 i = mon_lengths[isleap(yourtm.tm_year + in time2()
H A Dntp_calendar.c965 int isleap in ntpcal_split_yeardays()
974 /* convert 'isleap' to number of defective days */ in ntpcal_split_yeardays()
975 isleap = 1 + !isleap; in ntpcal_split_yeardays()
977 if (eyd >= 61 - isleap) in ntpcal_split_yeardays()
978 eyd += isleap; in ntpcal_split_yeardays()
966 ntpcal_split_yeardays(int32_t eyd,int isleap) ntpcal_split_yeardays() argument
/freebsd/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/lib/libc/stdtime/
H A Dstrptime.c622 tm->tm_yday = start_of_month[isleap(tm->tm_year + in _strptime()
656 start_of_month[isleap(tm->tm_year + in _strptime()
662 start_of_month[isleap(tm->tm_year + in _strptime()
671 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)] in _strptime()
/freebsd/usr.bin/pom/
H A Dpom.c65 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
139 days += isleap(1900 + cnt) ? 366 : 365; in main()
/freebsd/contrib/dialog/
H A Dcalendar.c174 isleap(int y) in isleap() function
207 result += isleap(year); in days_per_month()
224 return (isleap(year) ? 366 : 365); in days_per_year()
300 new_years_eve_dow = (new_year_dow + 364 + isleap(year)) % MAX_DAYS; in iso_week()
301 if (365 + isleap(year) - diy < MAX_DAYS in iso_week()
/freebsd/contrib/tzcode/
H A Dlocaltime.c1011 leapyear = isleap(year); in getrule()
1192 = year_lengths[isleap(yearbeg - 1)] * SECSPERDAY; in tzparse()
1205 = year_lengths[isleap(yearbeg)] * SECSPERDAY; in tzparse()
1224 yearsecs = (year_lengths[isleap(year)] in tzparse()
1900 while (year_lengths[isleap(y)] <= idays) { in leaps_thru_end_of()
1951 ip = mon_lengths[isleap(y)]; in timesub()
2137 yourtm.tm_mday += year_lengths[isleap(li)]; in mktmcpy()
2141 yourtm.tm_mday -= year_lengths[isleap(li)]; in mktmcpy()
2146 i = mon_lengths[isleap(y)][yourtm.tm_mon]; in mktmcpy()
H A Dprivate.h1047 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
1050 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
1051 ** isleap(y) == isleap(y % 400)
1053 ** isleap(a + b) == isleap((a + b) % 400)
1055 ** isleap(a + b) == isleap(a % 400 + b % 400)
1061 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
1023 #define isleap( global() macro
H A Dzic.c2080 i = len_years[isleap(j)]; in getleapdatetime()
2084 i = -len_years[isleap(j)]; in getleapdatetime()
2095 i = len_months[isleap(year)][j]; in getleapdatetime()
2101 day <= 0 || day > len_months[isleap(year)][month]) { in getleapdatetime()
3876 i = len_years[isleap(y)]; in rpytime()
3881 i = len_months[isleap(y)][m]; in rpytime()
3886 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) { in rpytime()
3914 if (i < 0 || i >= len_months[isleap(y)][m]) { in rpytime()
H A Dzdump.c701 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
717 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
/freebsd/lib/libsecureboot/
H A Dvets.c131 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
152 if (isleap(y)) in gdate()
159 if (m == 1 && d > 0 && isleap(year)) in gdate()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_wwv.c2221 int minute, day, isleap; in wwv_tsec() local
2261 isleap = up->decvec[YR].digit & 0x3; in wwv_tsec()
2263 if ((day == (isleap ? 182 : 183) || day == (isleap ? in wwv_tsec()
2290 if (day != (isleap ? 365 : 366)) in wwv_tsec()