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

References

unittests/Support/MathExtrasTest.cpp
  294   EXPECT_EQ(Max, SaturatingAdd(Max, T(1)));
  294   EXPECT_EQ(Max, SaturatingAdd(Max, T(1)));
  295   EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed));
  295   EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed));
  298   EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1)));
  298   EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1)));
  299   EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed));
  299   EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed));
  302   EXPECT_EQ(Max, SaturatingAdd(T(1), Max));
  302   EXPECT_EQ(Max, SaturatingAdd(T(1), Max));
  303   EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed));
  303   EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed));
  306   EXPECT_EQ(Max, SaturatingAdd(Max, Max));
  306   EXPECT_EQ(Max, SaturatingAdd(Max, Max));
  306   EXPECT_EQ(Max, SaturatingAdd(Max, Max));
  307   EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed));
  307   EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed));
  307   EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed));