Home
last modified time | relevance | path

Searched refs:SaturatingMultiplyAdd (Results 1 – 11 of 11) sorted by relevance

/external/llvm/unittests/Support/
DMathExtrasTest.cpp343 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/
DMathExtrasTest.cpp387 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/
DSampleProf.h126 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/
DSampleProf.h157 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/
DInstrProf.cpp349 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/
DInstrProf.cpp495 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/
DMathExtras.h765 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h821 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMathExtras.h839 SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
/external/llvm/lib/Analysis/
DInlineCost.cpp344 AllocatedSize = SaturatingMultiplyAdd( in visitAlloca()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInlineCost.cpp426 AllocatedSize = SaturatingMultiplyAdd( in visitAlloca()