OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:isleap
(Results
1 - 16
of
16
) 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
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/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/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/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/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/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/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/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 +
/src/external/bsd/unbound/dist/compat/
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)]) {
/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/include/
tzfile.h
167
#define
isleap
(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
macro
170
** Since everything in
isleap
is modulo 400 (or a factor of 400), we know that
171
**
isleap
(y) ==
isleap
(y % 400)
173
**
isleap
(a + b) ==
isleap
((a + b) % 400)
175
**
isleap
(a + b) ==
isleap
(a % 400 + b % 400)
181
#define isleap_sum(a, b)
isleap
((a) % 400 + (b) % 400)
/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;
private.h
1175
#define
isleap
(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
macro
1178
** Since everything in
isleap
is modulo 400 (or a factor of 400), we know that
1179
**
isleap
(y) ==
isleap
(y % 400)
1181
**
isleap
(a + b) ==
isleap
((a + b) % 400)
1183
**
isleap
(a + b) ==
isleap
(a % 400 + b % 400)
1189
#define isleap_sum(a, b)
isleap
((a) % 400 + (b) % 400)
/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))
Completed in 42 milliseconds
Indexes created Sat Feb 28 05:31:39 UTC 2026