in reply to
Bit operations for beginners
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)
?
Comment on
Re: Bit operations for beginners
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: Bit operations for beginners
by
Cine
(Friar)
on Jun 19, 2005 at 11:57 UTC
Indeed, corrected
T
I
M
T
O
W
T
D
I
[reply]
[d/l]
In Section
Meditations