Searched refs:safe_mul (Results 1 – 2 of 2) sorted by relevance
/external/safe-iop/src/ |
D | safe_iop.c | 556 a=SCHAR_MIN; b=-1; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s8() 557 a=SCHAR_MIN; b=-2; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s8() 558 a=SCHAR_MAX; b=SCHAR_MAX; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s8() 559 a=SCHAR_MAX/2+1; b=2; EXPECT_FALSE(safe_mul(NULL, a, b)); in T_mul_s8() 560 a=SCHAR_MAX/2; b=2; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s8() 561 a=100; b=0; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s8() 562 a=10; b=2; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s8() 563 a=SCHAR_MAX; b=0; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s8() 564 a=SCHAR_MIN; b=0; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s8() 565 a=0; b=SCHAR_MAX; EXPECT_TRUE(safe_mul(NULL, a, b)); in T_mul_s8() [all …]
|
/external/safe-iop/include/ |
D | safe_iop.h | 207 #define safe_mul(_ptr, __a, __b) \ macro 231 (safe_mul(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 232 safe_mul((_ptr), __sio(var)(r), __sio(var)(c))); }) 240 (safe_mul(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 241 safe_mul(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \ 242 safe_mul((_ptr), __sio(var)(r), (__sio(var)(d)))); }) 251 (safe_mul(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \ 252 safe_mul(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \ 253 safe_mul(&(__sio(var)(r)), __sio(var)(r), __sio(var)(d)) && \ 254 safe_mul((_ptr), __sio(var)(r), __sio(var)(e))); }) [all …]
|