Home
last modified time | relevance | path

Searched refs:SaturatingMultiply (Results 1 – 4 of 4) sorted by relevance

/external/llvm/unittests/Support/
DMathExtrasTest.cpp263 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/llvm/include/llvm/Support/
DMathExtras.h717 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) {
769 T Product = SaturatingMultiply(X, Y, &Overflowed);
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h775 SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) {
825 T Product = SaturatingMultiply(X, Y, &Overflowed);
/external/llvm/lib/ProfileData/
DInstrProf.cpp363 I->Count = SaturatingMultiply(I->Count, Weight, &Overflowed); in scale()
419 Count = SaturatingMultiply(Count, Weight, &Overflowed); in scale()