Searched refs:isleap (Results 1 - 9 of 9) sorted by relevance

/haiku-fatelf/headers/private/libroot/time/
H A Dtzfile.h164 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
167 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
168 ** isleap(y) == isleap(y % 400)
170 ** isleap(a + b) == isleap((a + b) % 400)
172 ** isleap(a + b) == isleap(a % 400 + b % 400)
178 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
/haiku-fatelf/src/kits/network/libbind/nameser/
H A Dns_date.c84 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
95 if (time.tm_mon > 1 && isleap(1900+time.tm_year))
101 if (isleap(1900+i))
/haiku-fatelf/src/bin/rcs/
H A Dmaketime.c48 static int isleap P((int));
62 isleap(y) function
80 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN));
215 - (tm->tm_mon<2 || ! isleap(tm->tm_year + TM_YEAR_ORIGIN));
/haiku-fatelf/src/bin/patch/
H A Dmaketime.c69 static int isleap P ((int));
92 isleap (y) function
111 + (m == 1 && isleap (tm->tm_year + TM_YEAR_ORIGIN)));
246 - (tm->tm_mon < 2 || !isleap (tm->tm_year + TM_YEAR_ORIGIN));
403 - (mon0 < 2 || !isleap (year0 + TM_YEAR_ORIGIN)));
425 int days_per_year = 365 + (leap = isleap (year1 + TM_YEAR_ORIGIN));
/haiku-fatelf/src/bin/unzip/
H A Dtimezone.c533 int isleap; local
538 isleap = leap(_tmbuf.tm_year + TM_YEAR_BASE);
539 while (days >= year_lengths[isleap]) {
540 days -= year_lengths[isleap];
542 isleap = leap(_tmbuf.tm_year + TM_YEAR_BASE);
546 while (days >= mon_lengths[isleap][_tmbuf.tm_mon])
547 days -= mon_lengths[isleap][_tmbuf.tm_mon++];
/haiku-fatelf/src/bin/zic/
H A Dzdump.c76 #ifndef isleap
77 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
78 #endif /* !defined isleap */
84 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
453 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
462 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
H A Dzic.c1162 i = len_years[isleap(j)];
1166 i = -len_years[isleap(j)];
1177 i = len_months[isleap(year)][j];
1183 day <= 0 || day > len_months[isleap(year)][month]) {
2524 i = len_years[isleap(y)];
2528 i = -len_years[isleap(y)];
2533 i = len_months[isleap(y)][m];
2538 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) {
2575 if (i < 0 || i >= len_months[isleap(y)][m]) {
/haiku-fatelf/src/system/libroot/posix/time/
H A Dlocaltime_fading_out.c814 leapyear = isleap(year);
1016 newfirst += year_lengths[isleap(year)] *
1484 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) {
1528 idays += year_lengths[isleap(y)];
1530 while (idays >= year_lengths[isleap(y)]) {
1531 idays -= year_lengths[isleap(y)];
1559 ip = mon_lengths[isleap(y)];
1701 yourtm.tm_mday += year_lengths[isleap(li)];
1705 yourtm.tm_mday -= year_lengths[isleap(li)];
1710 i = mon_lengths[isleap(
[all...]
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dstrftime.c594 /* isleap --- is a year a leap year? */
597 isleap(int year) function
680 dec31ly.tm_yday = 364 + isleap(dec31ly.tm_year + 1900);

Completed in 88 milliseconds