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

References

unittests/Support/MathExtrasTest.cpp
  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)));
  355   EXPECT_EQ(Max, SaturatingMultiply(Max, T(2)));
  356   EXPECT_EQ(Max, SaturatingMultiply(Max, T(2), &ResultOverflowed));
  356   EXPECT_EQ(Max, SaturatingMultiply(Max, T(2), &ResultOverflowed));
  359   EXPECT_EQ(Max, SaturatingMultiply(T(2), Max));
  359   EXPECT_EQ(Max, SaturatingMultiply(T(2), Max));
  360   EXPECT_EQ(Max, SaturatingMultiply(T(2), Max, &ResultOverflowed));
  360   EXPECT_EQ(Max, SaturatingMultiply(T(2), Max, &ResultOverflowed));
  363   EXPECT_EQ(Max, SaturatingMultiply(Max, Max));
  363   EXPECT_EQ(Max, SaturatingMultiply(Max, Max));
  363   EXPECT_EQ(Max, SaturatingMultiply(Max, Max));
  364   EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed));
  364   EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed));
  364   EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed));
  379         EXPECT_EQ(Max, SaturatingMultiply(X, Y));
  380         EXPECT_EQ(Max, SaturatingMultiply(X, Y, &ResultOverflowed));