Searched refs:overflow_result (Results 1 – 2 of 2) sorted by relevance
/external/icu/icu4c/source/test/cintltst/ |
D | putiltst.c | 135 int32_t overflow_result; in TestPUtilAPI() local 136 doAssert(FALSE, uprv_add32_overflow(INT32_MAX - 2, 1, &overflow_result), "should not overflow"); in TestPUtilAPI() 137 doAssert(INT32_MAX - 1, overflow_result, "should equal INT32_MAX - 1"); in TestPUtilAPI() 138 doAssert(FALSE, uprv_add32_overflow(INT32_MAX - 2, 2, &overflow_result), "should not overflow"); in TestPUtilAPI() 139 doAssert(INT32_MAX, overflow_result, "should equal exactly INT32_MAX"); in TestPUtilAPI() 140 doAssert(TRUE, uprv_add32_overflow(INT32_MAX - 2, 3, &overflow_result), "should overflow"); in TestPUtilAPI() 141 doAssert(FALSE, uprv_mul32_overflow(INT32_MAX / 5, 4, &overflow_result), "should not overflow"); in TestPUtilAPI() 142 doAssert(INT32_MAX / 5 * 4, overflow_result, "should equal INT32_MAX / 5 * 4"); in TestPUtilAPI() 143 doAssert(TRUE, uprv_mul32_overflow(INT32_MAX / 5, 6, &overflow_result), "should overflow"); in TestPUtilAPI() 145 doAssert(FALSE, uprv_add32_overflow(-3, -2, &overflow_result), "should not overflow"); in TestPUtilAPI() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/client/lib/ |
D | math.cc | 1203 auto overflow_result = Log(x) + Log(ScalarLike(x, 2)); in Acosh() local 1207 Select(Ge(x, sqrt_max_value), overflow_result, naive_result)); in Acosh() 1253 auto overflow_result = Log(Abs(a)) + Log(ScalarLike(a, 2)); in Asinh() local 1255 return Sign(x) * Select(Ge(a, sqrt_max_value), overflow_result, in Asinh()
|