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

/bionic/libc/tzcode/
H A Dtzfile.h153 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
156 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
157 ** isleap(y) == isleap(y % 400)
159 ** isleap(a + b) == isleap((a + b) % 400)
161 ** isleap(a + b) == isleap(a % 400 + b % 400)
167 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dlocaltime.c853 leapyear = isleap(year);
1034 yearsecs = (year_lengths[isleap(year)]
1503 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) {
1548 idays += year_lengths[isleap(y)];
1550 while (idays >= year_lengths[isleap(y)]) {
1551 idays -= year_lengths[isleap(y)];
1579 ip = mon_lengths[isleap(y)];
1754 yourtm.tm_mday += year_lengths[isleap(li)];
1758 yourtm.tm_mday -= year_lengths[isleap(li)];
1763 i = mon_lengths[isleap(
[all...]

Completed in 62 milliseconds