Searched refs:safe_mod (Results 1 – 2 of 2) sorted by relevance
/external/safe-iop/src/ |
D | safe_iop.c | 807 a=SCHAR_MIN; b=-1; EXPECT_FALSE(safe_mod(NULL, a, b)); in T_mod_s8() 808 a=100; b=0; EXPECT_FALSE(safe_mod(NULL, a, b)); in T_mod_s8() 809 a=10; b=2; EXPECT_TRUE(safe_mod(NULL, a, b)); in T_mod_s8() 816 a=SHRT_MIN; b=-1; EXPECT_FALSE(safe_mod(NULL, a, b)); in T_mod_s16() 817 a=100; b=0; EXPECT_FALSE(safe_mod(NULL, a, b)); in T_mod_s16() 818 a=10; b=2; EXPECT_TRUE(safe_mod(NULL, a, b)); in T_mod_s16() 825 a=INT_MIN; b=-1; EXPECT_FALSE(safe_mod(NULL, a, b)); in T_mod_s32() 826 a=100; b=0; EXPECT_FALSE(safe_mod(NULL, a, b)); in T_mod_s32() 827 a=10; b=2; EXPECT_TRUE(safe_mod(NULL, a, b)); in T_mod_s32() 834 a=SAFE_INT64_MIN; b=-1; EXPECT_FALSE(safe_mod(NULL, a, b)); in T_mod_s64() [all …]
|
/external/safe-iop/include/ |
D | safe_iop.h | 305 #define safe_mod(_ptr, __a, __b) \ macro 329 (safe_mod(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 330 safe_mod((_ptr), __sio(var)(r), __sio(var)(c))); }) 338 (safe_mod(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 339 safe_mod(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \ 340 safe_mod((_ptr), __sio(var)(r), (__sio(var)(d)))); }) 349 (safe_mod(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 350 safe_mod(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \ 351 safe_mod(&(__sio(var)(r)), __sio(var)(r), __sio(var)(d)) && \ 352 safe_mod((_ptr), __sio(var)(r), __sio(var)(e))); }) [all …]
|