reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/Support/MathExtrasTest.cpp
  406   EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10), &ResultOverflowed));
  407   EXPECT_FALSE(ResultOverflowed);
  410   EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(0), &ResultOverflowed));
  411   EXPECT_TRUE(ResultOverflowed);
  414   EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed));
  415   EXPECT_TRUE(ResultOverflowed);
  418   EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed));
  419   EXPECT_TRUE(ResultOverflowed);
  421   EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), Max, T(1), &ResultOverflowed));
  422   EXPECT_TRUE(ResultOverflowed);
  424   EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(1), &ResultOverflowed));
  425   EXPECT_TRUE(ResultOverflowed);
  427   EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, Max, &ResultOverflowed));
  428   EXPECT_TRUE(ResultOverflowed);
  431   EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(1), T(0), &ResultOverflowed));
  432   EXPECT_FALSE(ResultOverflowed);
  434   EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(0), T(1), &ResultOverflowed));
  435   EXPECT_FALSE(ResultOverflowed);
  437   EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(0), T(0), T(1), &ResultOverflowed));
  438   EXPECT_FALSE(ResultOverflowed);
  440   EXPECT_EQ(T(0), SaturatingMultiplyAdd(T(0), T(0), T(0), &ResultOverflowed));
  441   EXPECT_FALSE(ResultOverflowed);