Home
last modified time | relevance | path

Searched refs:checkedMulAdd (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DCheckedArithmeticTest.cpp38 EXPECT_EQ(checkedMulAdd<int64_t>(Max, 1, 2), None); in TEST()
39 EXPECT_EQ(checkedMulAdd<int64_t>(1, 1, Max), None); in TEST()
40 EXPECT_EQ(checkedMulAdd<int64_t>(1, -1, Min), None); in TEST()
41 EXPECT_EQ(checkedMulAdd<int64_t>(10, 2, 3), Optional<int64_t>(23)); in TEST()
56 EXPECT_EQ(checkedMulAdd<int16_t>(Max, 1, 2), None); in TEST()
57 EXPECT_EQ(checkedMulAdd<int16_t>(1, 1, Max), None); in TEST()
58 EXPECT_EQ(checkedMulAdd<int16_t>(1, -1, Min), None); in TEST()
59 EXPECT_EQ(checkedMulAdd<int16_t>(10, 2, 3), Optional<int16_t>(23)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DCheckedArithmetic.h67 checkedMulAdd(T A, T B, T C) { in checkedMulAdd() function