Searched defs:IS_POWER_OF_TWO (Results 1 - 2 of 2) sorted by relevance

/external/compiler-rt/test/asan/TestCases/
H A Dcoverage-reset.cc30 #define IS_POWER_OF_TWO(a) ((a & ((a) - 1)) == 0) macro
39 assert(IS_POWER_OF_TWO(main_bit));
44 assert(IS_POWER_OF_TWO(foo_bit));
49 assert(IS_POWER_OF_TWO(bar_bit));
/external/v8/src/base/
H A Dmacros.h180 #define IS_POWER_OF_TWO(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro
274 DCHECK(IS_POWER_OF_TWO(m));

Completed in 133 milliseconds