Lines Matching refs:Log2Floor
19 TEST(BitsTest, Log2Floor) { in TEST() argument
20 EXPECT_EQ(-1, Log2Floor(0)); in TEST()
21 EXPECT_EQ(0, Log2Floor(1)); in TEST()
22 EXPECT_EQ(1, Log2Floor(2)); in TEST()
23 EXPECT_EQ(1, Log2Floor(3)); in TEST()
24 EXPECT_EQ(2, Log2Floor(4)); in TEST()
27 EXPECT_EQ(i, Log2Floor(value)); in TEST()
28 EXPECT_EQ(i, Log2Floor(value + 1)); in TEST()
29 EXPECT_EQ(i, Log2Floor(value + 2)); in TEST()
30 EXPECT_EQ(i - 1, Log2Floor(value - 1)); in TEST()
31 EXPECT_EQ(i - 1, Log2Floor(value - 2)); in TEST()
33 EXPECT_EQ(31, Log2Floor(0xffffffffU)); in TEST()