OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SafeAdd
(Results
1 - 4
of
4
) sorted by null
/art/runtime/interpreter/
safe_math_test.cc
28
EXPECT_EQ(
SafeAdd
(std::numeric_limits<int32_t>::max(), 1),
30
EXPECT_EQ(
SafeAdd
(std::numeric_limits<int64_t>::max(), 1),
34
EXPECT_EQ(
SafeAdd
(std::numeric_limits<int32_t>::max() - 1, 1),
36
EXPECT_EQ(
SafeAdd
(std::numeric_limits<int64_t>::max() - 1, 1),
39
EXPECT_EQ(
SafeAdd
(std::numeric_limits<int32_t>::min() + 1, -1),
41
EXPECT_EQ(
SafeAdd
(std::numeric_limits<int64_t>::min() + 1, -1),
44
EXPECT_EQ(
SafeAdd
(int32_t(-1), -1), -2);
45
EXPECT_EQ(
SafeAdd
(int64_t(-1), -1), -2);
47
EXPECT_EQ(
SafeAdd
(int32_t(1), 1), 2);
48
EXPECT_EQ(
SafeAdd
(int64_t(1), 1), 2)
[
all
...]
safe_math.h
46
static inline typename select_bigger<T1, T2>::type
SafeAdd
(T1 a, T2 b) {
interpreter_switch_impl-inl.h
[
all
...]
/external/dng_sdk/source/
dng_safe_arithmetic.cpp
25
T
SafeAdd
(T arg1, T arg2) {
66
return
SafeAdd
<std::int32_t>(arg1, arg2);
70
return
SafeAdd
<std::int64_t>(arg1, arg2);
84
return
SafeAdd
<std::uint32_t>(arg1, arg2);
88
return
SafeAdd
<std::uint64_t>(arg1, arg2);
Completed in 191 milliseconds