PDA

View Full Version : Bitwise Operators ( &, |, ^, ~, <<, >> ) May 2011



Vuhelper
05-29-2011, 06:25 PM
http://t1.gstatic.com/images?q=tbn:ANd9GcSzS5NwYhekoIrknACay6IlouyWvr37C frIAMyd8v0ykBguL5C_ClaN_ioF
Bitwise operators modify variables considering the bit patterns that represent the values they store.

operator asm equivalent description
& AND Bitwise AND
| OR Bitwise Inclusive OR
^ XOR Bitwise Exclusive OR
~ NOT Unary complement (bit inversion)
<< SHL Shift Left
>> SHR Shift Right