|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Support/MathExtras.h 855 T Product = SaturatingMultiply(X, Y, &Overflowed);
lib/ProfileData/InstrProf.cpp 628 I->Count = SaturatingMultiply(I->Count, Weight, &Overflowed);
687 Count = SaturatingMultiply(Count, Weight, &Overflowed);
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp 227 uint64_t ScaleCount = SaturatingMultiply(Count, Num, &Overflowed);
unittests/Support/MathExtrasTest.cpp 325 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3)));
326 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3), &ResultOverflowed));
329 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2)));
330 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2), &ResultOverflowed));
334 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0)));
335 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0), &ResultOverflowed));
338 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0)));
339 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0), &ResultOverflowed));
342 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1)));
343 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1), &ResultOverflowed));
346 EXPECT_EQ(T(0), SaturatingMultiply(Max, T(0)));
347 EXPECT_EQ(T(0), SaturatingMultiply(Max, T(0), &ResultOverflowed));
350 EXPECT_EQ(T(0), SaturatingMultiply(T(0), Max));
351 EXPECT_EQ(T(0), SaturatingMultiply(T(0), Max, &ResultOverflowed));
355 EXPECT_EQ(Max, SaturatingMultiply(Max, T(2)));
356 EXPECT_EQ(Max, SaturatingMultiply(Max, T(2), &ResultOverflowed));
359 EXPECT_EQ(Max, SaturatingMultiply(T(2), Max));
360 EXPECT_EQ(Max, SaturatingMultiply(T(2), Max, &ResultOverflowed));
363 EXPECT_EQ(Max, SaturatingMultiply(Max, Max));
364 EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed));
379 EXPECT_EQ(Max, SaturatingMultiply(X, Y));
380 EXPECT_EQ(Max, SaturatingMultiply(X, Y, &ResultOverflowed));
383 EXPECT_EQ(X * Y, SaturatingMultiply(X, Y));
384 EXPECT_EQ(X * Y, SaturatingMultiply(X, Y, &ResultOverflowed));