Home
last modified time | relevance | path

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

/freebsd-14-stable/tests/include/
HDstdckdint_test.c12 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-14-stable/include/
HDstdckdint.h15 #define ckd_add(result, a, b) \ macro
18 #define ckd_add(result, a, b) \ macro
/freebsd-14-stable/contrib/tzcode/
HDdate.c127 #if defined ckd_add && defined ckd_mul in dogmt()
128 if (!ckd_add(&n, n, 2) && !ckd_mul(&n, n, sizeof *fakeenv) in dogmt()
HDlocaltime.c1589 #if defined ckd_add && defined ckd_sub in localsub()
1593 : ckd_add(&result->tm_year, in localsub()
1912 #ifdef ckd_add in timesub()
1913 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { in timesub()
1982 #ifdef ckd_add in increment_overflow()
1983 return ckd_add(ip, *ip, j); in increment_overflow()
2003 #ifdef ckd_add in increment_overflow32()
2004 return ckd_add(lp, *lp, m); in increment_overflow32()
2018 #ifdef ckd_add in increment_overflow_time()
2019 return ckd_add(tp, *tp, j); in increment_overflow_time()
[all …]
HDzdump.c140 #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()
HDprivate.h473 # define ckd_add(r, a, b) __builtin_add_overflow(a, b, r) macro
482 # define ckd_add(r, a, b) __builtin_add_overflow(a, b, r) macro
HDzic.c478 #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-14-stable/contrib/llvm-project/clang/lib/Headers/
HDstdckdint.h37 #define ckd_add(R, A, B) __builtin_add_overflow((A), (B), (R)) macro
/freebsd-14-stable/contrib/less/
HDxbuf.c45 if (ckd_add(&xbuf->size, xbuf->size, xbuf->size ? xbuf->size : xbuf->init_size)) in xbuf_add_byte()
HDless.h80 #define ckd_add(r, a, b) help_ckd_add(r, (uintmax)(a), (uintmax)(b), sizeof *(r), signed_expr(*(r))) macro
HDoutput.c553 v = v || ckd_add(&val, val, digit); \ in TYPE_TO_A_FUNC()
HDcharset.c269 if (ckd_mul(&n, n, 10) || ckd_add(&n, n, s[-1] - '0')) in ichardef()
HDdecode.c572 if (ckd_mul(&num, num, 10) || ckd_add(&num, num, ch - '0')) in getcc_int()
HDoptfunc.c700 v = v || ckd_add(&n, n, *s - '0'); in set_tabs()
HDcmdbuf.c1311 if (ckd_mul(&n, n, 10) || ckd_add(&n, n, *p - '0')) in cmd_int()
/freebsd-14-stable/usr.bin/bsdiff/bspatch/
HDbspatch.c68 if (ckd_add(&result, a, b)) in add_off_t()
/freebsd-14-stable/share/man/man3/
HDMakefile316 MLINKS+= stdckdint.3 ckd_add.3 \