reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/APIntTest.cpp
 2324       Max.setAllBits();
 2325       EXPECT_EQ(GreatestCommonDivisor(Zero, Max), Max);
 2325       EXPECT_EQ(GreatestCommonDivisor(Zero, Max), Max);
 2326       EXPECT_EQ(GreatestCommonDivisor(One, Max), One);
 2327       EXPECT_EQ(GreatestCommonDivisor(Two, Max), One);
 2328       EXPECT_EQ(GreatestCommonDivisor(Max, Max), Max);
 2328       EXPECT_EQ(GreatestCommonDivisor(Max, Max), Max);
 2328       EXPECT_EQ(GreatestCommonDivisor(Max, Max), Max);
 2330       APInt MaxOver2 = Max.udiv(Two);
 2331       EXPECT_EQ(GreatestCommonDivisor(MaxOver2, Max), One);
 2333       EXPECT_EQ(GreatestCommonDivisor(MaxOver2, Max - 1), MaxOver2);