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

/system/core/libcutils/
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)
H A Dtztime.c845 leapyear = isleap(year);
1047 newfirst += year_lengths[isleap(year)] *
1447 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) {
1491 idays += year_lengths[isleap(y)];
1493 while (idays >= year_lengths[isleap(y)]) {
1494 idays -= year_lengths[isleap(y)];
1522 ip = mon_lengths[isleap(y)];
1703 yourtm.tm_mday += year_lengths[isleap(li)];
1707 yourtm.tm_mday -= year_lengths[isleap(li)];
1712 i = mon_lengths[isleap(
[all...]

Completed in 64 milliseconds