Home
last modified time | relevance | path

Searched refs:SafeMul (Results 1 – 4 of 4) sorted by relevance

/art/runtime/interpreter/
Dsafe_math_test.cc98 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 …]
Dsafe_math.h58 static inline typename select_bigger<T1, T2>::type SafeMul(T1 a, T2 b) { in SafeMul() function
Dinterpreter_switch_impl-inl.h1359 SetVReg(A(), SafeMul(GetVReg(B()), GetVReg(C()))); in MUL_INT()
1412 SetVRegLong(A(), SafeMul(GetVRegLong(B()), GetVRegLong(C()))); in MUL_LONG()
1518 SetVReg(vregA, SafeMul(GetVReg(vregA), GetVReg(B()))); in MUL_INT_2ADDR()
1582 SetVRegLong(vregA, SafeMul(GetVRegLong(vregA), GetVRegLong(B()))); in MUL_LONG_2ADDR()
1703 SetVReg(A(), SafeMul(GetVReg(B()), C())); in MUL_INT_LIT16()
1741 SetVReg(A(), SafeMul(GetVReg(B()), C())); in MUL_INT_LIT8()
/art/compiler/optimizing/
Dinduction_var_range.cc49 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()