Searched defs:SAFE_UINT64_MAX (Results 1 - 2 of 2) sorted by relevance

/external/safe-iop/include/
H A Dsafe_iop.h540 # define SAFE_UINT64_MAX 0xffffffffffffffffUL macro
544 # define SAFE_UINT64_MAX 0xffffffffffffffffULL macro
565 MAKE_UADD(u, 64, u_int64_t, SAFE_UINT64_MAX)
598 MAKE_UMUL(u, 64, u_int64_t, SAFE_UINT64_MAX)
/external/safe-iop/src/
H A Dsafe_iop.c132 # define SAFE_UINT64_MAX 0xffffffffffffffffUL macro
136 # define SAFE_UINT64_MAX 0xffffffffffffffffULL macro
297 a=1; b=SAFE_UINT64_MAX; EXPECT_FALSE(safe_add(NULL, a, b));
298 a=SAFE_UINT64_MAX/2; b=a+2; EXPECT_FALSE(safe_add(NULL, a, b));
299 a=SAFE_UINT64_MAX/2; b=a; EXPECT_TRUE(safe_add(NULL, a, b));
300 a=SAFE_UINT64_MAX/2; b=a+1; EXPECT_TRUE(safe_add(NULL, a, b));
302 a=0; b=SAFE_UINT64_MAX; EXPECT_TRUE(safe_add(NULL, a, b));
507 a=SAFE_UINT64_MAX-1; b=SAFE_UINT64_MAX; EXPECT_FALSE(safe_sub(NULL, a, b));
508 a=SAFE_UINT64_MAX;
[all...]

Completed in 118 milliseconds