Searched refs:SaturatingAdd (Results 1 – 4 of 4) sorted by relevance
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 199 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/ |
D | SampleProf.h | 148 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/ |
D | InstrProf.cpp | 185 I->Count = SaturatingAdd(I->Count, JCount, &Overflowed); in mergeValueData() 233 Counts[I] = SaturatingAdd(Counts[I], OtherCount, &Overflowed); in merge()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 662 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) { 715 return SaturatingAdd(Z, Y, ResultOverflowed);
|