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

References

unittests/ADT/BitVectorTest.cpp
  274   ASSERT_TRUE(SmallBitVectorIsSmallMode(A));
  275   EXPECT_EQ(-1, A.find_first());
  276   EXPECT_EQ(-1, A.find_last());
  277   EXPECT_EQ(-1, A.find_first_unset());
  278   EXPECT_EQ(-1, A.find_last_unset());
  280   A.resize(20);
  281   A.set(3);
  282   A.set(4);
  283   A.set(16);
  284   ASSERT_TRUE(SmallBitVectorIsSmallMode(A));
  285   EXPECT_EQ(16, A.find_last());
  286   EXPECT_EQ(3, A.find_first());
  287   EXPECT_EQ(3, A.find_next(1));
  288   EXPECT_EQ(4, A.find_next(3));
  289   EXPECT_EQ(16, A.find_next(4));
  290   EXPECT_EQ(-1, A.find_next(16));
  292   EXPECT_EQ(-1, A.find_prev(3));
  293   EXPECT_EQ(3, A.find_prev(4));
  294   EXPECT_EQ(4, A.find_prev(16));
  295   EXPECT_EQ(16, A.find_prev(18));
  297   EXPECT_EQ(0, A.find_first_unset());
  298   EXPECT_EQ(19, A.find_last_unset());
  299   EXPECT_EQ(5, A.find_next_unset(3));
  300   EXPECT_EQ(5, A.find_next_unset(4));
  301   EXPECT_EQ(13, A.find_next_unset(12));
  302   EXPECT_EQ(17, A.find_next_unset(15));