Home
last modified time | relevance | path

Searched refs:b (Results 1 – 5 of 5) sorted by relevance

/time/sys/
A Dtime.h233 # define timercmp(a, b, CMP) \ argument
234 (((a)->tv_sec == (b)->tv_sec) \
235 ? ((a)->tv_usec CMP (b)->tv_usec) \
236 : ((a)->tv_sec CMP (b)->tv_sec))
237 # define timeradd(a, b, result) \ argument
239 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
240 (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
247 # define timersub(a, b, result) \ argument
249 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
250 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
/time/
A Dofftime.c57 #define DIV(a, b) ((a) / (b) - ((a) % (b) < 0)) in __offtime() argument
A Dera.c32 #define ERA_DATE_CMP(a, b) \ in __libc_rwlock_define() argument
33 (a[0] < b[0] || (a[0] == b[0] && (a[1] < b[1] \ in __libc_rwlock_define()
34 || (a[1] == b[1] && a[2] <= b[2])))) in __libc_rwlock_define()
A Dmktime.c139 shr (long_int a, int b) in shr() argument
143 ? a >> b in shr()
144 : (a + (a < 0)) / (one << b) - (a < 0)); in shr()
189 isdst_differ (int a, int b) in isdst_differ() argument
191 return (!a != !b) && (0 <= a) && (0 <= b); in isdst_differ()
232 long_int_avg (long_int a, long_int b) in long_int_avg() argument
234 return shr (a, 1) + shr (b, 1) + ((a | b) & 1); in long_int_avg()
A Dstrftime_l.c358 tm_diff (const struct tm *a, const struct tm *b) in tm_diff() argument
364 int b4 = (b->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (b->tm_year & 3); in tm_diff()
370 int years = a->tm_year - b->tm_year; in tm_diff()
372 + (a->tm_yday - b->tm_yday)); in tm_diff()
373 return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) in tm_diff()
374 + (a->tm_min - b->tm_min)) in tm_diff()
375 + (a->tm_sec - b->tm_sec)); in tm_diff()

Completed in 9 milliseconds