Re: and_bits() usage

new topic     » goto parent     » topic index » view thread      » older message » newer message

(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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu