Searched refs:SafeMul (Results 1 – 2 of 2) sorted by relevance
/art/runtime/interpreter/ |
D | safe_math_test.cc | 98 EXPECT_EQ(SafeMul(std::numeric_limits<int32_t>::max(), 2), in TEST() 100 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::max(), 2), in TEST() 104 EXPECT_EQ(SafeMul(std::numeric_limits<int32_t>::max() / 2, 2), in TEST() 106 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::max() / 2, 2), in TEST() 109 EXPECT_EQ(SafeMul(std::numeric_limits<int32_t>::min() / 2, 2), in TEST() 111 EXPECT_EQ(SafeMul(std::numeric_limits<int64_t>::min() / 2, 2), in TEST() 114 EXPECT_EQ(SafeMul(int32_t(-1), -1), 1); in TEST() 115 EXPECT_EQ(SafeMul(int64_t(-1), -1), 1); in TEST() 117 EXPECT_EQ(SafeMul(int32_t(1), 1), 1); in TEST() 118 EXPECT_EQ(SafeMul(int64_t(1), 1), 1); in TEST() [all …]
|
/art/compiler/optimizing/ |
D | induction_var_range.cc | 49 static int64_t SafeMul(int64_t a, int64_t b, /*out*/ bool* overflow) { in SafeMul() function 63 pow = SafeMul(pow, b, overflow); in IntPow() 67 b = SafeMul(b, b, overflow); in IntPow()
|