ENH: More concise next-power-of-2 calculation