Searched refs:SAFE_INT64_MAX (Results 1 – 2 of 2) sorted by relevance
/external/safe-iop/src/ |
D | safe_iop.c | 131 # define SAFE_INT64_MAX 0x7fffffffffffffffL macro 133 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1L) 135 # define SAFE_INT64_MAX 0x7fffffffffffffffLL macro 137 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1LL) 220 a=SAFE_INT64_MAX; 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() 223 a=SAFE_INT64_MAX/2; b=SAFE_INT64_MAX/2; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_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() 420 a=-2; b=SAFE_INT64_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s64() [all …]
|
/external/safe-iop/include/ |
D | safe_iop.h | 539 # define SAFE_INT64_MAX 0x7fffffffffffffffL macro 541 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1L) 543 # define SAFE_INT64_MAX 0x7fffffffffffffffLL macro 545 # define SAFE_INT64_MIN (-SAFE_INT64_MAX - 1LL) 573 MAKE_SADD(s, 64, int64_t, SAFE_INT64_MAX) 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)
|