Searched refs:SafeAdd (Results 1 – 3 of 3) sorted by relevance
/art/runtime/interpreter/ |
D | safe_math_test.cc | 28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), in TEST() 30 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max(), 1), in TEST() 34 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max() - 1, 1), in TEST() 36 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max() - 1, 1), in TEST() 39 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::min() + 1, -1), in TEST() 41 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::min() + 1, -1), in TEST() 44 EXPECT_EQ(SafeAdd(int32_t(-1), -1), -2); in TEST() 45 EXPECT_EQ(SafeAdd(int64_t(-1), -1), -2); in TEST() 47 EXPECT_EQ(SafeAdd(int32_t(1), 1), 2); in TEST() 48 EXPECT_EQ(SafeAdd(int64_t(1), 1), 2); in TEST() [all …]
|
D | safe_math.h | 46 static inline typename select_bigger<T1, T2>::type SafeAdd(T1 a, T2 b) { in SafeAdd() function
|
D | interpreter_switch_impl-inl.h | 1349 SetVReg(A(), SafeAdd(GetVReg(B()), GetVReg(C()))); in ADD_INT() 1402 SetVRegLong(A(), SafeAdd(GetVRegLong(B()), GetVRegLong(C()))); in ADD_LONG() 1506 SetVReg(vregA, SafeAdd(GetVReg(vregA), GetVReg(B()))); in ADD_INT_2ADDR() 1570 SetVRegLong(vregA, SafeAdd(GetVRegLong(vregA), GetVRegLong(B()))); in ADD_LONG_2ADDR() 1693 SetVReg(A(), SafeAdd(GetVReg(B()), C())); in ADD_INT_LIT16() 1731 SetVReg(A(), SafeAdd(GetVReg(B()), C())); in ADD_INT_LIT8()
|