Home
last modified time | relevance | path

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

/freebsd-12-stable/stand/efi/libefi/
Dtime.c57 #define isleap(y) (((y) % 4) == 0 && \ macro
115 lyear = isleap(efi_time->Year); in to_efi_time()
121 lyear = isleap(efi_time->Year); in to_efi_time()
175 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY); in from_efi_time()
183 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * in from_efi_time()
/freebsd-12-stable/contrib/netbsd-tests/lib/libutil/
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-12-stable/contrib/file/src/
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-12-stable/usr.bin/calendar/
Dpom.c78 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
140 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR; in fpom()
150 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR; in fpom()
160 yeardays = 1 + (isleap(year) ? DAYSPERLEAPYEAR : DAYSPERYEAR); /* reuse */ in fpom()
Ddates.c139 cumday = cumdaytab[isleap(y)]; in createdate()
197 monthdays = monthdaytab[isleap(y1)]; in generatedates()
215 monthdays = monthdaytab[isleap(y1)]; in generatedates()
222 monthdays = monthdaytab[isleap(y)]; in generatedates()
227 monthdays = monthdaytab[isleap(y2)]; in generatedates()
Dsunpos.c108 if (inMM <= 2 && isleap(inYY)) in sunpos()
224 cumdays = cumdaytab[isleap(year)]; in fequinoxsolstice()
377 cumdays = cumdaytab[isleap(year)]; in calculatesunlongitude30()
378 monthdays = monthdaytab[isleap(year)]; in calculatesunlongitude30()
Dostern.c65 if (isleap(year)) in easter()
Dpaskha.c66 cumday = cumdaytab[isleap(R)]; in paskha()
Dcalendar.h66 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
Dparsedata.c501 yearinfo->monthdays = monthdaytab[isleap(year)]; in parsedaymonth()
1053 int *cumdays = cumdaytab[isleap(year)]; in floattoday()
/freebsd-12-stable/contrib/tzcode/stdtime/
Dtzfile.h168 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
182 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
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)]; in time2sub()
1879 yourtm.tm_mday -= year_lengths[isleap(li)]; in time2sub()
1884 i = mon_lengths[isleap(y)][yourtm.tm_mon]; in time2sub()
/freebsd-12-stable/contrib/ntp/libntp/
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()
Dntp_calendar.c966 int isleap in ntpcal_split_yeardays() argument
976 isleap = 1 + !isleap; in ntpcal_split_yeardays()
978 if (eyd >= 61 - isleap) in ntpcal_split_yeardays()
979 eyd += isleap; in ntpcal_split_yeardays()
/freebsd-12-stable/contrib/unbound/compat/
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-12-stable/lib/libc/stdtime/
Dstrptime.c84 ((year % 100) / 4) + (isleap(year) ? 6 : 0) + 1) % 7); in first_wday_of()
625 tm->tm_yday = start_of_month[isleap(tm->tm_year + in _strptime()
659 start_of_month[isleap(tm->tm_year + in _strptime()
665 start_of_month[isleap(tm->tm_year + in _strptime()
674 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)] in _strptime()
/freebsd-12-stable/contrib/tzcode/zic/
Dzdump.c87 #ifndef isleap
88 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
95 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
443 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
452 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
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-12-stable/usr.bin/pom/
Dpom.c79 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
153 days += isleap(1900 + cnt) ? 366 : 365; in main()
/freebsd-12-stable/contrib/ntp/ntpd/
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()