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

References

unittests/ADT/APIntTest.cpp
 2420   i256 <<= 1;
 2421   EXPECT_EQ(253U, i256.countLeadingZeros());
 2422   EXPECT_EQ(1U, i256.countTrailingZeros());
 2423   EXPECT_EQ(2U, i256.countPopulation());
 2425   i256 <<= 62;
 2426   EXPECT_EQ(191U, i256.countLeadingZeros());
 2427   EXPECT_EQ(63U, i256.countTrailingZeros());
 2428   EXPECT_EQ(2U, i256.countPopulation());
 2430   i256 <<= 65;
 2431   EXPECT_EQ(126U, i256.countLeadingZeros());
 2432   EXPECT_EQ(128U, i256.countTrailingZeros());
 2433   EXPECT_EQ(2U, i256.countPopulation());
 2435   i256 <<= 64;
 2436   EXPECT_EQ(62U, i256.countLeadingZeros());
 2437   EXPECT_EQ(192U, i256.countTrailingZeros());
 2438   EXPECT_EQ(2U, i256.countPopulation());
 2440   i256 <<= 63;
 2441   EXPECT_EQ(0U, i256.countLeadingZeros());
 2442   EXPECT_EQ(255U, i256.countTrailingZeros());
 2443   EXPECT_EQ(1U, i256.countPopulation());