in reply to Bit fiddling madness
I have no clue as to what's going wrong and you only gave us a tiny code fragment so it's difficult to guess, however I wonder if this would help, or at least shed some light on what is happening.
my $bit = ($addr & $mask) ? 1 : 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bit fiddling madness
by mbethke (Hermit) on Feb 11, 2014 at 16:24 UTC |