Searched refs:safe_mul (Results 1 – 3 of 3) 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 …]
|
/external/skia/src/core/ |
D | SkColorSpace_ICC.cpp | 187 static bool safe_mul(uint32_t arg1, uint32_t arg2, uint32_t* result) { in safe_mul() function 603 if (!safe_mul(numEntries, gridPoints[i], &numEntries)) { in load_color_lut() 610 if (!safe_mul(numEntries, precision, &clutBytes)) { in load_color_lut() 843 return_if_false(safe_mul(entriesPerTable, numTables, &totalEntries), in load_lut_gammas() 846 return_if_false(safe_mul(precision, totalEntries, &readBytes), in load_lut_gammas() 855 return_if_false(safe_mul(sizeof(float), entriesPerTable, &writeBytesPerChannel), in load_lut_gammas() 875 return_if_false(safe_mul(numTablesToUse, writeBytesPerChannel, &writetableBytes), in load_lut_gammas()
|