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

References

unittests/ADT/BitVectorTest.cpp
  833   TypeParam B = A;
  835   EXPECT_EQ(4U, A.count());
  836   EXPECT_TRUE(A.test(2));
  837   EXPECT_TRUE(A.test(3));
  838   EXPECT_TRUE(A.test(8));
  839   EXPECT_TRUE(A.test(9));
  841   A >>= 1;
  842   EXPECT_EQ(createBitVector<TypeParam>(12, {{1, 3}, {7, 9}}), A);
  844   A <<= 1;
  845   EXPECT_EQ(B, A);
  847   A >>= 10;
  848   EXPECT_EQ(createBitVector<TypeParam>(12, {}), A);
  850   A = B;
  851   A <<= 10;
  852   EXPECT_EQ(createBitVector<TypeParam>(12, {}), A);
  859   A = createBitVector<TypeParam>(40, {{0, 12}, {25, 35}});
  860   EXPECT_EQ(40U, A.size());
  861   EXPECT_EQ(22U, A.count());
  869   A <<= 9;
  870   EXPECT_EQ(createBitVector<TypeParam>(40, {{9, 21}, {34, 40}}), A);
  878   A >>= 6;
  879   EXPECT_EQ(createBitVector<TypeParam>(40, {{3, 15}, {28, 34}}), A);
  887   A >>= 10;
  888   EXPECT_EQ(createBitVector<TypeParam>(40, {{0, 5}, {18, 24}}), A);
  891   A = createBitVector<TypeParam>(300, {{1, 30}, {60, 95}, {200, 275}});
  892   A <<= 29;
  895             A);