![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Bit operations for beginnersby wagemonkey (Initiate) |
on Feb 04, 2005 at 17:37 UTC ( #428141=note: print w/replies, xml ) | Need Help?? |
You have defined XOR as (a&b) | (~a&~b) , surely this is the inverse of XOR ( the biconditional). Shouldn't XOR be defined as (a&~b) | (~a&b)?
In Section
Meditations
|
|