go ahead... be a heretic | |
PerlMonks |
Re: How can I set a bit to 0 ?by LanX (Saint) |
on May 26, 2022 at 22:36 UTC ( [id://11144211]=note: print w/replies, xml ) | Need Help?? |
> What I don't know how to do, nor find on Google,is turn off a specific bit whether it is set or not. you "mask" (using & the "bitwise-and") with a bitvector which is only 0 if and only if you want to turn off.
for more see Mask (computing)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|