Use is_pow2() function, where possible, instead of IS_POW2 macro.