Home
last modified time | relevance | path

Searched refs:power_of_2 (Results 1 – 2 of 2) sorted by relevance

/external/libaom/libaom/test/
Dlog2_test.cc26 const unsigned int power_of_2 = 1U << exponent; in TEST() local
27 EXPECT_EQ(get_msb(power_of_2 - 1), exponent - 1); in TEST()
28 EXPECT_EQ(get_msb(power_of_2), exponent); in TEST()
29 EXPECT_EQ(get_msb(power_of_2 + 1), exponent); in TEST()
42 const int power_of_2 = 1 << exponent; in TEST() local
43 EXPECT_EQ(av1_ceil_log2(power_of_2 - 1), exponent); in TEST()
44 EXPECT_EQ(av1_ceil_log2(power_of_2), exponent); in TEST()
47 EXPECT_EQ(av1_ceil_log2(power_of_2 + 1), exponent + 1); in TEST()
/external/libchrome/base/metrics/
Dhistogram_unittest.cc230 int power_of_2 = 1; in TEST_P() local
232 EXPECT_EQ(power_of_2, ranges.range(i)); in TEST_P()
233 power_of_2 *= 2; in TEST_P()
498 int power_of_2 = 1; in TEST_P() local
501 histogram->Add(power_of_2); in TEST_P()
502 power_of_2 *= 2; in TEST_P()