in reply to Power of two round up.
local $_ = (shift)-1; $_ |= $_>>1; $_ |= $_>>2; $_ |= $_>>4; $_ |= $_>>8; $_ |= $_>>16; return ++$_
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Power of two round up.
by Dominus (Parson) on Dec 16, 2000 at 22:24 UTC | |
by I0 (Priest) on Dec 17, 2000 at 05:29 UTC | |
by Dominus (Parson) on Dec 17, 2000 at 05:35 UTC | |
by I0 (Priest) on Dec 18, 2000 at 22:44 UTC | |
Re: Re: Power of two round up.
by runrig (Abbot) on Dec 18, 2000 at 21:28 UTC | |
Re: Re: Power of two round up.
by jynx (Priest) on Dec 20, 2000 at 06:12 UTC | |
by I0 (Priest) on Dec 20, 2000 at 09:03 UTC |
In Section
Cool Uses for Perl