eval: Use is_power2 helper instead of open code