/freebsd/tests/include/ |
H A D | stdckdint_test.c | 12 ATF_TC_WITHOUT_HEAD(ckd_add); 13 ATF_TC_BODY(ckd_add, tc) in ATF_TC_BODY() argument 17 ATF_CHECK(!ckd_add(&result, INT_MAX, 0)); in ATF_TC_BODY() 19 ATF_CHECK(ckd_add(&result, INT_MAX, 1)); in ATF_TC_BODY() 47 ATF_TP_ADD_TC(tp, ckd_add); in ATF_TP_ADD_TCS()
|
/freebsd/include/ |
H A D | stdckdint.h | 15 #define ckd_add(result, a, b) \ macro 18 #define ckd_add(result, a, b) \ macro
|
/freebsd/contrib/tzcode/ |
H A D | date.c | 127 #if defined ckd_add && defined ckd_mul in dogmt() 128 if (!ckd_add(&n, n, 2) && !ckd_mul(&n, n, sizeof *fakeenv) in dogmt()
|
H A D | localtime.c | 1589 #if defined ckd_add && defined ckd_sub 1593 : ckd_add(&result->tm_year, 1912 #ifdef ckd_add in timesub() 1913 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { in timesub() 1982 #ifdef ckd_add in timesub() 1983 return ckd_add(ip, *ip, j); in timesub() 2003 #ifdef ckd_add in timesub() 2004 return ckd_add(lp, *lp, m); in timesub() 2018 #ifdef ckd_add in timesub() 2019 return ckd_add(t in timesub() [all...] |
H A D | zdump.c | 140 #ifdef ckd_add in sumsize() 142 if (!ckd_add(&sum, a, b) && sum <= INDEX_MAX) in sumsize() 275 # ifdef ckd_add in tzalloc() 276 if (ckd_add(&initial_nenvptrs, initial_nenvptrs, 1) in tzalloc()
|
H A D | private.h | 458 /* Support ckd_add, ckd_sub, ckd_mul on C23 or recent-enough GCC-like macro 473 # define ckd_add(r, a, b) __builtin_add_overflow(a, b, r) 482 # define ckd_add(r, a, b) __builtin_add_overflow(a, b, r) 449 # define ckd_add( global() macro
|
H A D | zic.c | 478 #ifdef ckd_add in size_sum() 480 if (!ckd_add(&sum, a, b) && sum <= INDEX_MAX) in size_sum() 550 #if defined ckd_add && defined ckd_mul in grow_nitems_alloc() 552 if (!ckd_add(nitems_alloc, *nitems_alloc, addend) in grow_nitems_alloc() 3819 #ifdef ckd_add in oadd() 3821 if (!ckd_add(&sum, t1, t2)) in oadd() 3833 #ifdef ckd_add in tadd() 3835 if (!ckd_add(&sum, t1, t2) && min_time <= sum && sum <= max_time) in tadd()
|
/freebsd/contrib/less/ |
H A D | xbuf.c | 45 if (ckd_add(&xbuf->size, xbuf->size, xbuf->size ? xbuf->size : xbuf->init_size)) 105 * Helper functions for the ckd_add and ckd_mul macro substitutes. in help_fixup()
|
H A D | less.h | 80 #define ckd_add(r, a, b) help_ckd_add(r, (uintmax)(a), (uintmax)(b), sizeof *(r), signed_expr(*(r))) 90 #define ckd_add(r, a, b) help_ckd_add( global() macro
|
H A D | output.c | 553 v = v || ckd_add(&val, val, digit); \
|
H A D | charset.c | 269 if (ckd_mul(&n, n, 10) || ckd_add(&n, n, s[-1] - '0')) in ichardef()
|
H A D | decode.c | 572 if (ckd_mul(&num, num, 10) || ckd_add(&num, num, ch - '0')) in cmd_search()
|
H A D | optfunc.c | 700 v = v || ckd_add(&n, n, *s - '0'); in set_tabs()
|
H A D | cmdbuf.c | 1311 if (ckd_mul(&n, n, 10) || ckd_add(&n, n, *p - '0'))
|
/freebsd/usr.bin/bsdiff/bspatch/ |
H A D | bspatch.c | 69 if (ckd_add(&result, a, b)) in add_off_t()
|
/freebsd/share/man/man3/ |
H A D | Makefile | 314 MLINKS+= stdckdint.3 ckd_add.3 \
|