Lines Matching refs:Log2Ceiling
36 TEST(BitsTest, Log2Ceiling) { in TEST() argument
37 EXPECT_EQ(-1, Log2Ceiling(0)); in TEST()
38 EXPECT_EQ(0, Log2Ceiling(1)); in TEST()
39 EXPECT_EQ(1, Log2Ceiling(2)); in TEST()
40 EXPECT_EQ(2, Log2Ceiling(3)); in TEST()
41 EXPECT_EQ(2, Log2Ceiling(4)); in TEST()
44 EXPECT_EQ(i, Log2Ceiling(value)); in TEST()
45 EXPECT_EQ(i + 1, Log2Ceiling(value + 1)); in TEST()
46 EXPECT_EQ(i + 1, Log2Ceiling(value + 2)); in TEST()
47 EXPECT_EQ(i, Log2Ceiling(value - 1)); in TEST()
48 EXPECT_EQ(i, Log2Ceiling(value - 2)); in TEST()
50 EXPECT_EQ(32, Log2Ceiling(0xffffffffU)); in TEST()