Lines Matching refs:SAFE_INT64_MAX
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()
421 a=SAFE_INT64_MAX; b=SAFE_INT64_MAX; EXPECT_TRUE(safe_sub(NULL, a, b)); in T_sub_s64()
612 a=SAFE_INT64_MAX; b=SAFE_INT64_MAX; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s64()
613 a=SAFE_INT64_MAX/2+1; b=2; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s64()
614 a=SAFE_INT64_MAX/2; b=2; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s64()
617 a=SAFE_INT64_MAX; b=0; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s64()
619 a=0; b=SAFE_INT64_MAX; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s64()
895 a=0; b=SAFE_INT64_MAX; EXPECT_TRUE(safe_mod(NULL, a, b)); in T_mod_u64()
1020 a=0; b=SAFE_INT64_MAX; EXPECT_TRUE(safe_div(NULL, a, b)); in T_div_u64()
1068 EXPECT_TRUE(__sio(m)(smax)(((int64_t)0)) == SAFE_INT64_MAX); in T_magic_constants()