/freebsd/stand/efi/libefi/ |
H A D | time.c | 54 #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 D | t_parsedate.c | 253 #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 D | cdf_time.c | 41 #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 D | pom.c | 64 #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 D | dates.c | 138 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 D | sunpos.c | 106 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 D | ostern.c | 63 if (isleap(year)) in easter()
|
H A D | paskha.c | 64 cumday = cumdaytab[isleap(R)]; in paskha()
|
H A D | calendar.h | 64 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
|
H A D | parsedata.c | 498 yearinfo->monthdays = monthdaytab[isleap(year)]; in parsedaymonth() 1050 int *cumdays = cumdaytab[isleap(year)]; in floattoday()
|
/freebsd/contrib/ntp/libntp/ |
H A D | mktime.c | 89 #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 D | ntp_calendar.c | 965 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 D | gmtime_r.c | 33 #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 D | strptime.c | 622 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 D | pom.c | 65 #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 D | calendar.c | 174 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 D | localtime.c | 1011 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 D | private.h | 1047 #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 D | zic.c | 2080 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 D | zdump.c | 701 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot() 717 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
|
/freebsd/lib/libsecureboot/ |
H A D | vets.c | 131 #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 D | refclock_wwv.c | 2221 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()
|