Searched refs:SafeAdd (Results 1 – 4 of 4) 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.cc | 1696 SafeAdd(shadow_frame.GetVReg(inst->VRegB_23x()), in ExecuteSwitchImpl() 1776 SafeAdd(shadow_frame.GetVRegLong(inst->VRegB_23x()), in ExecuteSwitchImpl() 1923 shadow_frame.SetVReg(vregA, SafeAdd(shadow_frame.GetVReg(vregA), in ExecuteSwitchImpl() 2020 SafeAdd(shadow_frame.GetVRegLong(vregA), in ExecuteSwitchImpl() 2206 SafeAdd(shadow_frame.GetVReg(inst->VRegB_22s(inst_data)), in ExecuteSwitchImpl() 2264 SafeAdd(shadow_frame.GetVReg(inst->VRegB_22b()), inst->VRegC_22b())); in ExecuteSwitchImpl()
|
D | interpreter_goto_table_impl.cc | 1815 SafeAdd(shadow_frame.GetVReg(inst->VRegB_23x()), in ExecuteGotoImpl() 1894 SafeAdd(shadow_frame.GetVRegLong(inst->VRegB_23x()), in ExecuteGotoImpl() 2044 SafeAdd(shadow_frame.GetVReg(vregA), in ExecuteGotoImpl() 2141 SafeAdd(shadow_frame.GetVRegLong(vregA), in ExecuteGotoImpl() 2327 SafeAdd(shadow_frame.GetVReg(inst->VRegB_22s(inst_data)), in ExecuteGotoImpl() 2385 SafeAdd(shadow_frame.GetVReg(inst->VRegB_22b()), in ExecuteGotoImpl()
|