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

References

unittests/ADT/APIntTest.cpp
 2351   i256.lshrInPlace(1);
 2352   EXPECT_EQ(1U, i256.countLeadingZeros());
 2353   EXPECT_EQ(253U, i256.countTrailingZeros());
 2354   EXPECT_EQ(2U, i256.countPopulation());
 2356   i256.lshrInPlace(62);
 2357   EXPECT_EQ(63U, i256.countLeadingZeros());
 2358   EXPECT_EQ(191U, i256.countTrailingZeros());
 2359   EXPECT_EQ(2U, i256.countPopulation());
 2361   i256.lshrInPlace(65);
 2362   EXPECT_EQ(128U, i256.countLeadingZeros());
 2363   EXPECT_EQ(126U, i256.countTrailingZeros());
 2364   EXPECT_EQ(2U, i256.countPopulation());
 2366   i256.lshrInPlace(64);
 2367   EXPECT_EQ(192U, i256.countLeadingZeros());
 2368   EXPECT_EQ(62U, i256.countTrailingZeros());
 2369   EXPECT_EQ(2U, i256.countPopulation());
 2371   i256.lshrInPlace(63);
 2372   EXPECT_EQ(255U, i256.countLeadingZeros());
 2373   EXPECT_EQ(0U, i256.countTrailingZeros());
 2374   EXPECT_EQ(1U, i256.countPopulation());