Searched refs:power_of_2 (Results 1 – 4 of 4) sorted by relevance
/external/libaom/test/ |
D | log2_test.cc | 26 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/ImageMagick/MagickCore/ |
D | magick-config.h | 263 #define MAGICKCORE_BITS_BELOW(power_of_2) \ argument 264 ((power_of_2)-1) 266 #define MAGICKCORE_MAX_ALIGNMENT_PADDING(power_of_2) \ argument 267 MAGICKCORE_BITS_BELOW(power_of_2) 269 #define MAGICKCORE_IS_NOT_ALIGNED(n, power_of_2) \ argument 270 ((n) & MAGICKCORE_BITS_BELOW(power_of_2)) 275 #define MAGICKCORE_ALIGN_DOWN(n, power_of_2) \ argument 276 ((n) & ~MAGICKCORE_BITS_BELOW(power_of_2)) 278 #define MAGICKCORE_ALIGN_UP(n, power_of_2) \ argument 279 MAGICKCORE_ALIGN_DOWN((n) + MAGICKCORE_MAX_ALIGNMENT_PADDING(power_of_2),power_of_2)
|
/external/libchrome/base/metrics/ |
D | histogram_unittest.cc | 230 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()
|
/external/cronet/base/metrics/ |
D | histogram_unittest.cc | 315 int power_of_2 = 1; in TEST_P() local 317 EXPECT_EQ(power_of_2, ranges.range(i)); in TEST_P() 318 power_of_2 *= 2; in TEST_P() 596 int power_of_2 = 1; in TEST_P() local 599 histogram->Add(power_of_2); in TEST_P() 600 power_of_2 *= 2; in TEST_P()
|