laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
my $c = unpack("%32b*", pack "B$p", unpack "B$p", $v);
Note that $p start with zero. In reply to Re: Efficient bit counting with a twist.
by trizen
|
|