reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
237 return llvm::MulOverflow<T>(A, B, R);
unittests/Support/MathExtrasTest.cpp570 EXPECT_FALSE(MulOverflow<TypeParam>(1, 2, Result)); 572 EXPECT_FALSE(MulOverflow<TypeParam>(-1, 3, Result)); 574 EXPECT_FALSE(MulOverflow<TypeParam>(4, -2, Result)); 576 EXPECT_FALSE(MulOverflow<TypeParam>(-6, -5, Result)); 584 EXPECT_FALSE(MulOverflow<TypeParam>(MinValue + 1, -1, Result)); 591 EXPECT_TRUE(MulOverflow<TypeParam>(MinValue, -1, Result)); 599 EXPECT_TRUE(MulOverflow<TypeParam>(MinValue, MinValue, Result)); 601 EXPECT_TRUE(MulOverflow<TypeParam>(MaxValue, MaxValue, Result)); 607 EXPECT_FALSE(MulOverflow<TypeParam>(4, 0, Result)); 609 EXPECT_FALSE(MulOverflow<TypeParam>(-5, 0, Result)); 611 EXPECT_FALSE(MulOverflow<TypeParam>(0, 5, Result)); 613 EXPECT_FALSE(MulOverflow<TypeParam>(0, -5, Result));