HomeSort by: relevance | last modified time | path
    Searched refs:isleap (Results 1 - 22 of 22) sorted by relevancy

  /src/sys/arch/i386/stand/efiboot/
efigetsecs.c 33 #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;
  /src/include/
tzfile.h 169 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
172 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
173 ** isleap(y) == isleap(y % 400)
175 ** isleap(a + b) == isleap((a + b) % 400)
177 ** isleap(a + b) == isleap(a % 400 + b % 400)
183 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
  /src/sys/arch/ia64/stand/ia64/ski/
time.c 54 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
129 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
137 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY);
  /src/sys/stand/efiboot/
efigetsecs.c 37 #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;
  /src/lib/libresolv/
ns_date.c 83 #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))
  /src/sys/arch/ia64/stand/efi/libefi/
time.c 54 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
118 UTime += (CumulativeDays[isleap(Year)][13] * SECSPERDAY);
126 UTime += (CumulativeDays[isleap(ETime->Year)][ETime->Month] * SECSPERDAY);
  /src/external/bsd/libbind/dist/nameser/
ns_date.c 86 #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))
  /src/external/bsd/file/dist/src/
cdf_time.c 47 #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))
  /src/external/bsd/unbound/dist/compat/
gmtime_r.c 33 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
77 while (days < 0 || days >= (long) year_lengths[yleap = isleap(y)]) {
  /src/external/bsd/ntp/dist/libntp/
mktime.c 91 #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 +
ntp_calendar.c 967 int isleap
976 /* convert 'isleap' to number of defective days */
977 isleap = 1 + !isleap;
979 if (eyd >= 61 - isleap)
980 eyd += isleap;
  /src/tests/lib/libutil/
t_parsedate.c 303 #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(tm.tm_year)
    [all...]
  /src/external/gpl2/rcs/dist/src/
maketime.c 50 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));
  /src/lib/libc/time/
strptime.c 113 (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;
localtime.c 1655 leapyear = isleap(year);
1834 = year_lengths[isleap(yearbeg - 1)] * SECSPERDAY;
1847 = year_lengths[isleap(yearbeg)] * SECSPERDAY;
1864 yearsecs = year_lengths[isleap(year)] * SECSPERDAY;
2516 while (year_lengths[isleap(y)] <= idays) {
2567 ip = mon_lengths[isleap(y)];
2789 mday += year_lengths[isleap(li)];
2794 mday -= year_lengths[isleap(li)];
2800 i = mon_lengths[isleap(y)][yourtm.tm_mon];
private.h 1190 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
1193 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
1194 ** isleap(y) == isleap(y % 400)
1196 ** isleap(a + b) == isleap((a + b) % 400)
1198 ** isleap(a + b) == isleap(a % 400 + b % 400)
1204 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
zdump.c 681 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
697 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR;
zic.c 2346 i = len_years[isleap(j)];
2350 i = -len_years[isleap(j)];
2361 i = len_months[isleap(year)][j];
2367 day <= 0 || day > len_months[isleap(year)][month]) {
4177 i = len_years[isleap(y)];
4182 i = len_months[isleap(y)][m];
4187 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) {
4215 if (i < 0 || i >= len_months[isleap(y)][m]) {
  /src/bin/date/
date.c 86 #if !defined(isleap)
87 # define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
290 if (tm.tm_mday > 28 + isleap(tm.tm_year + 1900))
474 if (isleap(lt->tm_year + TM_YEAR_BASE)) {
  /src/external/bsd/ntp/dist/ntpd/
refclock_wwv.c 2223 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))
  /src/usr.bin/calendar/
calendar.c 246 if (isleap(tp->tm_year + TM_YEAR_BASE)) {
  /src/lib/libutil/
parsedate.y 486 #define isleap(yr) (((yr) & 3) == 0 && (((yr) % 100) != 0 || \
953 ((tm.tm_mon==1) ? isleap(tm.tm_year) : 0)))

Completed in 33 milliseconds