05-13-2011 05:10 AM
05-13-2011 05:17 AM - edited 05-13-2011 05:19 AM
Nope...thats an XNOR, so it makes sense.
You're doing a XOR which is 65 yes, but then a NOT after that. So with I32's (signed), that makes -66.
65 XOR 0 = 65
NOT (65) = -66
05-13-2011 05:20 AM
00000000000000000000000010000001
xor
00000000000000000000000000000000
=
00000000000000000000000010000001
NOT =
11111111111111111111111101111110
which is a negative number with the absolut value
00000000000000000000000010000001
+
00000000000000000000000000000001
=
00000000000000000000000010000010
So -66 is correct.