Searched refs:ResultOverflowed (Results 1 – 5 of 5) sorted by relevance
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 226 bool ResultOverflowed; in SaturatingAddTestHelper() local 229 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper() 230 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper() 233 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper() 234 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper() 237 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper() 238 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper() 241 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper() 242 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper() 245 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 270 bool ResultOverflowed; in SaturatingAddTestHelper() local 273 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper() 274 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper() 277 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper() 278 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper() 281 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper() 282 EXPECT_FALSE(ResultOverflowed); in SaturatingAddTestHelper() 285 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper() 286 EXPECT_TRUE(ResultOverflowed); in SaturatingAddTestHelper() 289 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper() [all …]
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 699 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) { 701 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; 717 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) { 719 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; 752 return SaturatingAdd(Z, Y, ResultOverflowed); 765 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) { 767 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MathExtras.h | 758 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) { 760 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; 775 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) { 777 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; 810 return SaturatingAdd(Z, Y, ResultOverflowed); 821 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) { 823 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | MathExtras.h | 776 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) { 778 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; 793 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) { 795 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy; 828 return SaturatingAdd(Z, Y, ResultOverflowed); 839 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) { 841 bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
|