Searched refs:SAFE_INT64_MIN (Results 1 – 2 of 2) sorted by relevance
/external/safe-iop/src/ |
D | safe_iop.c | 133 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1L) macro 137 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1LL) macro 219 a=SAFE_INT64_MIN; b=-1; EXPECT_FALSE(safe_add(NULL, a, b)); in T_add_s64() 222 a=SAFE_INT64_MIN; b=SAFE_INT64_MAX; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_s64() 417 a=SAFE_INT64_MIN; b=1; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s64() 418 a=SAFE_INT64_MIN; b=SAFE_INT64_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s64() 419 a=SAFE_INT64_MIN/2; b=SAFE_INT64_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s64() 610 a=SAFE_INT64_MIN; b=-1; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s64() 611 a=SAFE_INT64_MIN; b=-2; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s64() 618 a=SAFE_INT64_MIN; b=0; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s64() [all …]
|
/external/safe-iop/include/ |
D | safe_iop.h | 541 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1L) macro 545 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1LL) macro 589 MAKE_SSUB(s, 64, int64_t, SAFE_INT64_MIN, SAFE_INT64_MAX) 606 MAKE_SMUL(s, 64, int64_t, SAFE_INT64_MAX, SAFE_INT64_MIN) 623 MAKE_SDIV(s, 64, int64_t, SAFE_INT64_MIN) 640 MAKE_SMOD(s, 64, int64_t, SAFE_INT64_MIN)
|