Searched refs:SaturatingMultiplyAdd (Results 1 – 11 of 11) sorted by relevance
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 343 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10))); in SaturatingMultiplyAddTestHelper() 344 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 348 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 352 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 356 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 359 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 362 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 365 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 369 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 372 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 387 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10))); in SaturatingMultiplyAddTestHelper() 388 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 392 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 396 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 400 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 403 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 406 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 409 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 413 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() 416 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper() [all …]
|
/external/llvm/include/llvm/ProfileData/ |
D | SampleProf.h | 126 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed); 141 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed); 189 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed); 196 SaturatingMultiplyAdd(Num, Weight, TotalHeadSamples, &Overflowed);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/ |
D | SampleProf.h | 157 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed); 172 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed); 226 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed); 234 SaturatingMultiplyAdd(Num, Weight, TotalHeadSamples, &Overflowed);
|
/external/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 349 I->Count = SaturatingMultiplyAdd(J->Count, Weight, I->Count, &Overflowed); in merge() 399 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 495 I->Count = SaturatingMultiplyAdd(J->Count, Weight, I->Count, &Overflowed); in merge() 548 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 765 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MathExtras.h | 821 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | MathExtras.h | 839 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 344 AllocatedSize = SaturatingMultiplyAdd( in visitAlloca()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InlineCost.cpp | 426 AllocatedSize = SaturatingMultiplyAdd( in visitAlloca()
|