Lines Matching refs:SaturatingMultiplyAdd
343 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10))); in SaturatingMultiplyAddTestHelper()
344 EXPECT_EQ(T(16), SaturatingMultiplyAdd(T(2), T(3), T(10), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
348 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
352 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
356 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), T(1), Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
359 EXPECT_EQ(Max, SaturatingMultiplyAdd(T(1), Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
362 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
365 EXPECT_EQ(Max, SaturatingMultiplyAdd(Max, Max, Max, &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
369 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
372 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(1), T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
375 EXPECT_EQ(T(1), SaturatingMultiplyAdd(T(0), T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
378 EXPECT_EQ(T(0), SaturatingMultiplyAdd(T(0), T(0), T(0), &ResultOverflowed)); in SaturatingMultiplyAddTestHelper()
383 TEST(MathExtras, SaturatingMultiplyAdd) { in TEST() argument