Home
last modified time | relevance | path

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

/external/llvm/unittests/Support/
DMathExtrasTest.cpp199 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2))); in SaturatingAddTestHelper()
200 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper()
203 EXPECT_EQ(Max, SaturatingAdd(Max, T(1))); in SaturatingAddTestHelper()
204 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper()
207 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1))); in SaturatingAddTestHelper()
208 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper()
211 EXPECT_EQ(Max, SaturatingAdd(T(1), Max)); in SaturatingAddTestHelper()
212 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper()
215 EXPECT_EQ(Max, SaturatingAdd(Max, Max)); in SaturatingAddTestHelper()
216 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
[all …]
/external/llvm/include/llvm/ProfileData/
DSampleProf.h148 NumSamples = SaturatingAdd(NumSamples, S, &Overflowed);
169 TargetSamples = SaturatingAdd(TargetSamples, S, &Overflowed);
223 TotalSamples = SaturatingAdd(TotalSamples, Num, &Overflowed);
236 TotalHeadSamples = SaturatingAdd(TotalHeadSamples, Num, &Overflowed);
/external/llvm/lib/ProfileData/
DInstrProf.cpp185 I->Count = SaturatingAdd(I->Count, JCount, &Overflowed); in mergeValueData()
233 Counts[I] = SaturatingAdd(Counts[I], OtherCount, &Overflowed); in merge()
/external/llvm/include/llvm/Support/
DMathExtras.h662 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) {
715 return SaturatingAdd(Z, Y, ResultOverflowed);