in reply to Incrementing only the masked bits
my ($val, $mask) = (-1, 0x01000007); do { $val += ~$mask+1; $val &= $mask; printf "0x%08.8x\n", $val; } while ($val < $mask);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Incrementing only the masked bits (chicken eggs)
by tye (Sage) on Nov 10, 2005 at 20:18 UTC |