Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DCheckedArithmeticTest.cpp29 EXPECT_EQ(checkedMul<int64_t>(Max, 2), None); in TEST()
30 EXPECT_EQ(checkedMul<int64_t>(Max, Max), None); in TEST()
31 EXPECT_EQ(checkedMul<int64_t>(Min, 2), None); in TEST()
32 EXPECT_EQ(checkedMul<int64_t>(10, 2), Optional<int64_t>(20)); in TEST()
47 EXPECT_EQ(checkedMul<int16_t>(Max, 2), None); in TEST()
48 EXPECT_EQ(checkedMul<int16_t>(Max, Max), None); in TEST()
49 EXPECT_EQ(checkedMul<int16_t>(Min, 2), None); in TEST()
50 EXPECT_EQ(checkedMul<int16_t>(10, 2), Optional<int16_t>(20)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DCheckedArithmetic.h58 checkedMul(T LHS, T RHS) { in checkedMul() function
68 if (auto Product = checkedMul(A, B)) in checkedMulAdd()