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

References

unittests/ADT/APIntTest.cpp
  188   EXPECT_EQ(252u, s256.countLeadingZeros());
  189   EXPECT_EQ(0u, s256.countLeadingOnes());
  190   EXPECT_EQ(4u, s256.getActiveBits());
  191   EXPECT_EQ(0u, s256.countTrailingZeros());
  192   EXPECT_EQ(4u, s256.countTrailingOnes());
  193   EXPECT_EQ(4u, s256.countPopulation());
  194   EXPECT_EQ(15, s256.getSExtValue());
  195   EXPECT_EQ(15u, s256.getZExtValue());
  197   s256.setBits(62, 66);
  198   EXPECT_EQ(190u, s256.countLeadingZeros());
  199   EXPECT_EQ(0u, s256.countLeadingOnes());
  200   EXPECT_EQ(66u, s256.getActiveBits());
  201   EXPECT_EQ(67u, s256.getMinSignedBits());
  202   EXPECT_EQ(0u, s256.countTrailingZeros());
  203   EXPECT_EQ(4u, s256.countTrailingOnes());
  204   EXPECT_EQ(8u, s256.countPopulation());
  206   s256.setBits(60, 256);
  207   EXPECT_EQ(0u, s256.countLeadingZeros());
  208   EXPECT_EQ(196u, s256.countLeadingOnes());
  209   EXPECT_EQ(256u, s256.getActiveBits());
  210   EXPECT_EQ(61u, s256.getMinSignedBits());
  211   EXPECT_EQ(0u, s256.countTrailingZeros());
  212   EXPECT_EQ(4u, s256.countTrailingOnes());
  213   EXPECT_EQ(200u, s256.countPopulation());
  214   EXPECT_EQ(static_cast<int64_t>((~0ull << 60) | 15), s256.getSExtValue());