Searched refs:SaturatingMultiply (Results 1 – 8 of 8) sorted by relevance
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 263 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3))); in SaturatingMultiplyTestHelper() 264 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 267 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2))); in SaturatingMultiplyTestHelper() 268 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 272 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0))); in SaturatingMultiplyTestHelper() 273 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 276 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0))); in SaturatingMultiplyTestHelper() 277 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 280 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1))); in SaturatingMultiplyTestHelper() 281 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyTestHelper() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 307 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3))); in SaturatingMultiplyTestHelper() 308 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 311 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2))); in SaturatingMultiplyTestHelper() 312 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 316 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0))); in SaturatingMultiplyTestHelper() 317 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 320 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0))); in SaturatingMultiplyTestHelper() 321 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper() 324 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1))); in SaturatingMultiplyTestHelper() 325 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyTestHelper() [all …]
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 717 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) { 769 T Product = SaturatingMultiply(X, Y, &Overflowed);
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MathExtras.h | 775 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) { 825 T Product = SaturatingMultiply(X, Y, &Overflowed);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | MathExtras.h | 793 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) { 843 T Product = SaturatingMultiply(X, Y, &Overflowed);
|
/external/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 363 I->Count = SaturatingMultiply(I->Count, Weight, &Overflowed); in scale() 419 Count = SaturatingMultiply(Count, Weight, &Overflowed); in scale()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
D | PGOMemOPSizeOpt.cpp | 228 uint64_t ScaleCount = SaturatingMultiply(Count, Num, &Overflowed); in getScaledCount()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 509 I->Count = SaturatingMultiply(I->Count, Weight, &Overflowed); in scale() 568 Count = SaturatingMultiply(Count, Weight, &Overflowed); in scale()
|