|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ProfileData/SampleProf.h 229 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed);
244 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
310 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed);
318 SaturatingMultiplyAdd(Num, Weight, TotalHeadSamples, &Overflowed);
lib/Analysis/InlineCost.cpp 438 AllocatedSize = SaturatingMultiplyAdd(
lib/ProfileData/InstrProf.cpp 614 I->Count = SaturatingMultiplyAdd(J->Count, Weight, I->Count, &Overflowed);
667 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed);
unittests/Support/MathExtrasTest.cpp 405 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10)));
406 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10), &ResultOverflowed));
410 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(0), &ResultOverflowed));
414 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed));
418 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed));
421 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), Max, T(1), &ResultOverflowed));
424 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(1), &ResultOverflowed));
427 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, Max, &ResultOverflowed));
431 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(1), T(0), &ResultOverflowed));
434 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(0), T(1), &ResultOverflowed));
437 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(0), T(0), T(1), &ResultOverflowed));
440 EXPECT_EQ(T(0), SaturatingMultiplyAdd(T(0), T(0), T(0), &ResultOverflowed));