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

References

unittests/ADT/APIntTest.cpp
   68   EXPECT_EQ(45u, i61.countLeadingZeros());
   69   EXPECT_EQ(0u, i61.countLeadingOnes());
   70   EXPECT_EQ(16u, i61.getActiveBits());
   71   EXPECT_EQ(15u, i61.countTrailingZeros());
   72   EXPECT_EQ(1u, i61.countPopulation());
   73   EXPECT_EQ(static_cast<int64_t>(1 << 15), i61.getSExtValue());
   74   EXPECT_EQ(static_cast<uint64_t>(1 << 15), i61.getZExtValue());
   76   i61.setBits(8, 19);
   77   EXPECT_EQ(42u, i61.countLeadingZeros());
   78   EXPECT_EQ(0u, i61.countLeadingOnes());
   79   EXPECT_EQ(19u, i61.getActiveBits());
   80   EXPECT_EQ(8u, i61.countTrailingZeros());
   81   EXPECT_EQ(11u, i61.countPopulation());
   82   EXPECT_EQ(static_cast<int64_t>((1 << 19) - (1 << 8)), i61.getSExtValue());
   83   EXPECT_EQ(static_cast<uint64_t>((1 << 19) - (1 << 8)), i61.getZExtValue());