Rewrite next_power_of_two for perf increase -> overflow behavior change