Home
last modified time | relevance | path

Searched refs:ckd_add (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/lib/libc/time/
H A Dlocaltime.c1734 # if defined ckd_add && defined ckd_sub in gmtime_r()
1738 : ckd_add(&result->tm_year,
1990 #ifdef ckd_add in increment_overflow32()
1991 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { in increment_overflow32()
2060 #ifdef ckd_add
2061 return ckd_add(ip, *ip, j);
2081 #ifdef ckd_add in time2sub()
2082 return ckd_add(tp, *tp, j); in time2sub()
2096 #ifdef ckd_add in time2sub()
2097 return ckd_add(t in time2sub()
[all...]
H A Dzdump.c141 #ifdef ckd_add
143 if (!ckd_add(&sum, a, b) && sum <= INDEX_MAX) in sumsize()
264 # ifdef ckd_add
265 if (ckd_add(&initial_nenvptrs, initial_nenvptrs, 1)
H A Dprivate.h496 /* Support ckd_add, ckd_sub, ckd_mul on C23 or recent-enough GCC-like
511 # define ckd_add(r, a, b) __builtin_add_overflow(a, b, r)
520 # define ckd_add(r, a, b) __builtin_add_overflow(a, b, r)
466 # define ckd_add( global() macro
475 # define ckd_add( global() macro
H A Dzic.c485 #ifdef ckd_add in size_overflow()
487 if (!ckd_add(&sum, a, b) && sum <= INDEX_MAX) in size_overflow()
557 #if defined ckd_add && defined ckd_mul in estrdup()
559 if (!ckd_add(nitems_alloc, *nitems_alloc, addend) in estrdup()
3793 #ifdef ckd_add in rpytime()
3795 if (!ckd_add(&sum, t1, t2)) in rpytime()
3807 #ifdef ckd_add in rpytime()
3809 if (!ckd_add(&sum, t1, t2) && min_time <= sum && sum <= max_time) in rpytime()
/netbsd-src/external/bsd/less/dist/
H A Dxbuf.c33 if (ckd_add(&xbuf->size, xbuf->size, xbuf->size ? xbuf->size : 16)) in xbuf_add_byte()
H A Dless.h92 #define ckd_add(r, a, b) help_ckd_add(r, a, b, sizeof *(r), signed_expr(*(r))) macro
H A Doutput.c507 v |= ckd_add(&val, val, digit); \ in TYPE_TO_A_FUNC()
H A Dcharset.c271 if (ckd_mul(&n, n, 10) || ckd_add(&n, n, s[-1] - '0')) in ichardef()
H A Ddecode.c478 if (ckd_mul(&num, num, 10) || ckd_add(&num, num, ch - '0')) in getcc_int()
H A Doptfunc.c693 v |= ckd_add(&n, n, *s - '0'); in set_tabs()
H A Dcmdbuf.c1295 if (ckd_mul(&n, n, 10) || ckd_add(&n, n, *p - '0')) in cmd_int()