Lines Matching refs:SaturatingAdd
228 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2))); in SaturatingAddTestHelper()
229 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper()
232 EXPECT_EQ(Max, SaturatingAdd(Max, T(1))); in SaturatingAddTestHelper()
233 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper()
236 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1))); in SaturatingAddTestHelper()
237 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper()
240 EXPECT_EQ(Max, SaturatingAdd(T(1), Max)); in SaturatingAddTestHelper()
241 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper()
244 EXPECT_EQ(Max, SaturatingAdd(Max, Max)); in SaturatingAddTestHelper()
245 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
249 TEST(MathExtras, SaturatingAdd) { in TEST() argument