Searched refs:SafeSub (Results 1 – 3 of 3) sorted by relevance
/art/runtime/interpreter/ |
D | safe_math_test.cc | 63 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::min(), 1), in TEST() 65 EXPECT_EQ(SafeSub(std::numeric_limits<int64_t>::min(), 1), in TEST() 69 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::max() - 1, -1), in TEST() 71 EXPECT_EQ(SafeSub(std::numeric_limits<int64_t>::max() - 1, -1), in TEST() 74 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::min() + 1, 1), in TEST() 76 EXPECT_EQ(SafeSub(std::numeric_limits<int64_t>::min() + 1, 1), in TEST() 79 EXPECT_EQ(SafeSub(int32_t(-1), -1), 0); in TEST() 80 EXPECT_EQ(SafeSub(int64_t(-1), -1), 0); in TEST() 82 EXPECT_EQ(SafeSub(int32_t(1), 1), 0); in TEST() 83 EXPECT_EQ(SafeSub(int64_t(1), 1), 0); in TEST() [all …]
|
D | safe_math.h | 52 static inline typename select_bigger<T1, T2>::type SafeSub(T1 a, T2 b) { in SafeSub() function
|
D | interpreter_switch_impl-inl.h | 1207 SetVReg(A(), SafeSub(GetVReg(B()), GetVReg(C()))); in SUB_INT() 1260 SetVRegLong(A(), SafeSub(GetVRegLong(B()), GetVRegLong(C()))); in SUB_LONG() 1363 SetVReg(A(), SafeSub(GetVReg(A()), GetVReg(B()))); in SUB_INT_2ADDR() 1416 SetVRegLong(A(), SafeSub(GetVRegLong(A()), GetVRegLong(B()))); in SUB_LONG_2ADDR() 1519 SetVReg(A(), SafeSub(C(), GetVReg(B()))); in RSUB_INT() 1557 SetVReg(A(), SafeSub(C(), GetVReg(B()))); in RSUB_INT_LIT8()
|