http://www.perlmonks.org?node_id=47091


in reply to Re: Re: Power of two round up.
in thread Power of two round up.

Sure, because it has to dispatch many fewer opcodes. But if I had wanted to use the log2 x solution, I wouldn't have asked in the first place. Floating-point arithmetic gives me the heebie-jeebies.