HomeSort by: relevance | last modified time | path
    Searched defs:isleap (Results 1 - 10 of 10) 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/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 60 #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);
  /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/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/sys/arch/ia64/stand/ia64/ski/
time.c 60 #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);
  /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/lib/libc/time/
strptime.c 113 (isleap(yr) ? 6 : 0) + 1) % 7;
693 int isleap; local in function:strptime_l
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;
private.h 1118 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
1121 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
1122 ** isleap(y) == isleap(y % 400)
1124 ** isleap(a + b) == isleap((a + b) % 400)
1126 ** isleap(a + b) == isleap(a % 400 + b % 400)
1132 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
  /src/include/
tzfile.h 163 #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)

Completed in 276 milliseconds