Lines Matching refs:SaturatingAdd
199 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2))); in SaturatingAddTestHelper()
200 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper()
203 EXPECT_EQ(Max, SaturatingAdd(Max, T(1))); in SaturatingAddTestHelper()
204 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper()
207 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1))); in SaturatingAddTestHelper()
208 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper()
211 EXPECT_EQ(Max, SaturatingAdd(T(1), Max)); in SaturatingAddTestHelper()
212 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper()
215 EXPECT_EQ(Max, SaturatingAdd(Max, Max)); in SaturatingAddTestHelper()
216 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
220 TEST(MathExtras, SaturatingAdd) { in TEST() argument