Home
last modified time | relevance | path

Searched refs:overflow_result (Results 1 – 3 of 3) sorted by relevance

/external/cronet/third_party/icu/source/test/cintltst/
Dputiltst.c136 int32_t overflow_result; in TestPUtilAPI() local
137 doAssert(false, uprv_add32_overflow(INT32_MAX - 2, 1, &overflow_result), "should not overflow"); in TestPUtilAPI()
138 doAssert(INT32_MAX - 1, overflow_result, "should equal INT32_MAX - 1"); in TestPUtilAPI()
139 doAssert(false, uprv_add32_overflow(INT32_MAX - 2, 2, &overflow_result), "should not overflow"); in TestPUtilAPI()
140 doAssert(INT32_MAX, overflow_result, "should equal exactly INT32_MAX"); in TestPUtilAPI()
141 doAssert(true, uprv_add32_overflow(INT32_MAX - 2, 3, &overflow_result), "should overflow"); in TestPUtilAPI()
142 doAssert(false, uprv_mul32_overflow(INT32_MAX / 5, 4, &overflow_result), "should not overflow"); in TestPUtilAPI()
143 doAssert(INT32_MAX / 5 * 4, overflow_result, "should equal INT32_MAX / 5 * 4"); in TestPUtilAPI()
144 doAssert(true, uprv_mul32_overflow(INT32_MAX / 5, 6, &overflow_result), "should overflow"); in TestPUtilAPI()
146 doAssert(false, uprv_add32_overflow(-3, -2, &overflow_result), "should not overflow"); in TestPUtilAPI()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dputiltst.c136 int32_t overflow_result; in TestPUtilAPI() local
137 doAssert(false, uprv_add32_overflow(INT32_MAX - 2, 1, &overflow_result), "should not overflow"); in TestPUtilAPI()
138 doAssert(INT32_MAX - 1, overflow_result, "should equal INT32_MAX - 1"); in TestPUtilAPI()
139 doAssert(false, uprv_add32_overflow(INT32_MAX - 2, 2, &overflow_result), "should not overflow"); in TestPUtilAPI()
140 doAssert(INT32_MAX, overflow_result, "should equal exactly INT32_MAX"); in TestPUtilAPI()
141 doAssert(true, uprv_add32_overflow(INT32_MAX - 2, 3, &overflow_result), "should overflow"); in TestPUtilAPI()
142 doAssert(false, uprv_mul32_overflow(INT32_MAX / 5, 4, &overflow_result), "should not overflow"); in TestPUtilAPI()
143 doAssert(INT32_MAX / 5 * 4, overflow_result, "should equal INT32_MAX / 5 * 4"); in TestPUtilAPI()
144 doAssert(true, uprv_mul32_overflow(INT32_MAX / 5, 6, &overflow_result), "should overflow"); in TestPUtilAPI()
146 doAssert(false, uprv_add32_overflow(-3, -2, &overflow_result), "should not overflow"); in TestPUtilAPI()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dmath.cc1201 auto overflow_result = Log(x) + Log(ScalarLike(x, 2)); in Acosh() local
1205 Select(Ge(x, sqrt_max_value), overflow_result, naive_result)); in Acosh()
1251 auto overflow_result = Log(Abs(a)) + Log(ScalarLike(a, 2)); in Asinh() local
1253 return Sign(x) * Select(Ge(a, sqrt_max_value), overflow_result, in Asinh()