Lines Matching refs:SaturatingMultiply
263 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3))); in SaturatingMultiplyTestHelper()
264 EXPECT_EQ(T(6), SaturatingMultiply(T(2), T(3), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
267 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2))); in SaturatingMultiplyTestHelper()
268 EXPECT_EQ(T(6), SaturatingMultiply(T(3), T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
272 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0))); in SaturatingMultiplyTestHelper()
273 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
276 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0))); in SaturatingMultiplyTestHelper()
277 EXPECT_EQ(T(0), SaturatingMultiply(T(1), T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
280 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1))); in SaturatingMultiplyTestHelper()
281 EXPECT_EQ(T(0), SaturatingMultiply(T(0), T(1), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
284 EXPECT_EQ(T(0), SaturatingMultiply(Max, T(0))); in SaturatingMultiplyTestHelper()
285 EXPECT_EQ(T(0), SaturatingMultiply(Max, T(0), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
288 EXPECT_EQ(T(0), SaturatingMultiply(T(0), Max)); in SaturatingMultiplyTestHelper()
289 EXPECT_EQ(T(0), SaturatingMultiply(T(0), Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
293 EXPECT_EQ(Max, SaturatingMultiply(Max, T(2))); in SaturatingMultiplyTestHelper()
294 EXPECT_EQ(Max, SaturatingMultiply(Max, T(2), &ResultOverflowed)); in SaturatingMultiplyTestHelper()
297 EXPECT_EQ(Max, SaturatingMultiply(T(2), Max)); in SaturatingMultiplyTestHelper()
298 EXPECT_EQ(Max, SaturatingMultiply(T(2), Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
301 EXPECT_EQ(Max, SaturatingMultiply(Max, Max)); in SaturatingMultiplyTestHelper()
302 EXPECT_EQ(Max, SaturatingMultiply(Max, Max, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
317 EXPECT_EQ(Max, SaturatingMultiply(X, Y)); in SaturatingMultiplyTestHelper()
318 EXPECT_EQ(Max, SaturatingMultiply(X, Y, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
321 EXPECT_EQ(X * Y, SaturatingMultiply(X, Y)); in SaturatingMultiplyTestHelper()
322 EXPECT_EQ(X * Y, SaturatingMultiply(X, Y, &ResultOverflowed)); in SaturatingMultiplyTestHelper()
329 TEST(MathExtras, SaturatingMultiply) { in TEST() argument