Re: and_bits() usage
- Posted by jaygade Oct 07, 2009
- 1144 views
(Stupid answer erased)
Edit: still got it wrong.
Crap.
Go back to the previous answer. if and_bits(myval, bit) = 0 then your bit is clear. If and_bits(myval, bit) = bit then your bit is set. "bit" being the actual value of the bit, not its position.