Home
last modified time | relevance | path

Searched refs:LDNS_DIV (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/ldns/
H A Dutil.c171 #define LDNS_DIV(x,y) (((x) % (y) < 0) ? ((x) / (y) - 1 ) : ((x) / (y))) macro
185 return (LDNS_DIV(y2, 4) - LDNS_DIV(y1, 4)) - in leap_days()
186 (LDNS_DIV(y2, 100) - LDNS_DIV(y1, 100)) + in leap_days()
187 (LDNS_DIV(y2, 400) - LDNS_DIV(y1, 400)); in leap_days()
233 new_year = year + (int) LDNS_DIV(days, 365); in ldns_year_and_yday_from_days_since_epoch()
279 clock = LDNS_DIV(clock, 60); in ldns_gmtime64_r()
281 clock = LDNS_DIV(clock, 60); in ldns_gmtime64_r()
283 clock = LDNS_DIV(clock, 24); in ldns_gmtime64_r()
/freebsd/contrib/unbound/sldns/
H A Dparseutil.c49 #define LDNS_DIV(x,y) (((x) % (y) < 0) ? ((x) / (y) - 1 ) : ((x) / (y))) macro
63 return (LDNS_DIV(y2, 4) - LDNS_DIV(y1, 4)) - in leap_days()
64 (LDNS_DIV(y2, 100) - LDNS_DIV(y1, 100)) + in leap_days()
65 (LDNS_DIV(y2, 400) - LDNS_DIV(y1, 400)); in leap_days()
105 new_year = year + (int) LDNS_DIV(days, 365); in sldns_year_and_yday_from_days_since_epoch()
151 clock = LDNS_DIV(clock, 60); in sldns_gmtime64_r()
153 clock = LDNS_DIV(clock, 60); in sldns_gmtime64_r()
155 clock = LDNS_DIV(clock, 24); in sldns_gmtime64_r()