Home | History | Annotate | Download | only in base

Lines Matching refs:Log2Floor

13 TEST(BitsTest, Log2Floor) {
14 EXPECT_EQ(-1, Log2Floor(0));
15 EXPECT_EQ(0, Log2Floor(1));
16 EXPECT_EQ(1, Log2Floor(2));
17 EXPECT_EQ(1, Log2Floor(3));
18 EXPECT_EQ(2, Log2Floor(4));
21 EXPECT_EQ(i, Log2Floor(value));
22 EXPECT_EQ(i, Log2Floor(value + 1));
23 EXPECT_EQ(i, Log2Floor(value + 2));
24 EXPECT_EQ(i - 1, Log2Floor(value - 1));
25 EXPECT_EQ(i - 1, Log2Floor(value - 2));
27 EXPECT_EQ(31, Log2Floor(0xffffffffU));