Bitwise Operators: Difference between revisions

m
→‎XOR: fixed formatting inconsistency
m (Had citations in the wrong section)
m (→‎XOR: fixed formatting inconsistency)
 
Line 106:
* A bitwise <code>NOT</code> is the same as <code>XOR -1</code>.
* <code>A ^ A = 0</code>. Furthermore, if <code>A ^ B = 0</code>, then <code>A = B</code>.
* If <code>((A ^ B) & C) = 0</code>, then A and B both share the bits of C in common.
 
 
1,489

edits