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


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

#or perhaps $w=32; $v |= $v>>($w>>=1) while $w;