Searched refs:safe_sub (Results 1 – 2 of 2) sorted by relevance
/external/safe-iop/src/ |
D | safe_iop.c | 378 a=SCHAR_MIN; b=1; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s8() 379 a=SCHAR_MIN; b=SCHAR_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s8() 380 a=SCHAR_MIN/2; b=SCHAR_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s8() 381 a=-2; b=SCHAR_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s8() 382 a=SCHAR_MAX; b=SCHAR_MAX; EXPECT_TRUE(safe_sub(NULL, a, b)); in T_sub_s8() 383 a=10; b=2; EXPECT_TRUE(safe_sub(NULL, a, b)); in T_sub_s8() 384 a=2; b=10; EXPECT_TRUE(safe_sub(NULL, a, b)); in T_sub_s8() 391 a=SHRT_MIN; b=1; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s16() 392 a=SHRT_MIN; b=SHRT_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s16() 393 a=SHRT_MIN/2; b=SHRT_MAX; EXPECT_FALSE(safe_sub(NULL, a, b)); in T_sub_s16() [all …]
|
/external/safe-iop/include/ |
D | safe_iop.h | 155 #define safe_sub(_ptr, __a, __b) \ macro 180 (safe_sub(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 181 safe_sub((_ptr), __sio(var)(r), __sio(var)(c))); }) 189 (safe_sub(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 190 safe_sub(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \ 191 safe_sub((_ptr), __sio(var)(r), (__sio(var)(d)))); }) 200 (safe_sub(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 201 safe_sub(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \ 202 safe_sub(&(__sio(var)(r)), __sio(var)(r), __sio(var)(d)) && \ 203 safe_sub((_ptr), __sio(var)(r), __sio(var)(e))); }) [all …]
|