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

References

unittests/Support/MathExtrasTest.cpp
  291   EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed));
  292   EXPECT_FALSE(ResultOverflowed);
  295   EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed));
  296   EXPECT_TRUE(ResultOverflowed);
  299   EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed));
  300   EXPECT_FALSE(ResultOverflowed);
  303   EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed));
  304   EXPECT_TRUE(ResultOverflowed);
  307   EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed));
  308   EXPECT_TRUE(ResultOverflowed);