Searched refs:power_of_2 (Results 1 – 3 of 3) sorted by relevance
/external/libaom/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()
|