Mnemonics

AND

alternating AND empty
01010101 0x55
& 00000000 0x0
00000000 0x0
AND
AND
"turns off all bits"
alternating AND full
01010101 0x55
& 11111111 0xff
01010101 0x55
AND
AND
"no change"
alternating AND a given vector
01010101 0x55
& 00110000 0x30
00010000 0x10
AND
AND
"tests the selected bits"
alternating AND an inverted given vector
01010101 0x55
& 11001111 0xcf
01000101 0x45
AND
AND
"turns off the not selected bits"
alternating AND self
01010101 0x55
& 01010101 0x55
01010101 0x55
AND
AND
"no change"
full AND empty
11111111 0xff
& 00000000 0x0
00000000 0x0
AND
AND
"turns off all bits"
full AND full
11111111 0xff
& 11111111 0xff
11111111 0xff
AND
AND
"no change"
empty AND empty
00000000 0x0
& 00000000 0x0
00000000 0x0
AND
AND
"no change"
empty AND full
00000000 0x0
& 11111111 0xff
00000000 0x0
AND
AND
"no change"

OR

alternating OR empty
01010101 0x55
| 00000000 0x0
01010101 0x55
OR
OR
"no change"
alternating OR full
01010101 0x55
| 11111111 0xff
11111111 0xff
OR
OR
"turns on all bits"
alternating OR a given vector
01010101 0x55
| 00110000 0x30
01110101 0x75
OR
OR
"turns on the selected bits"
alternating OR an inverted given vector
01010101 0x55
| 11001111 0xcf
11011111 0xdf
OR
OR
"turns on the selected bits"
alternating OR self
01010101 0x55
| 01010101 0x55
01010101 0x55
OR
OR
"no change"
full OR empty
11111111 0xff
| 00000000 0x0
11111111 0xff
OR
OR
"no change"
full OR full
11111111 0xff
| 11111111 0xff
11111111 0xff
OR
OR
"no change"
empty OR empty
00000000 0x0
| 00000000 0x0
00000000 0x0
OR
OR
"no change"
empty OR full
00000000 0x0
| 11111111 0xff
11111111 0xff
OR
OR
"turns on all bits"

XOR

alternating XOR empty
01010101 0x55
^ 00000000 0x0
01010101 0x55
XOR
XOR
"no change"
alternating XOR full
01010101 0x55
^ 11111111 0xff
10101010 0xaa
XOR
XOR
"inverts"
alternating XOR a given vector
01010101 0x55
^ 00110000 0x30
01100101 0x65
XOR
XOR
"toggles selected bits"
alternating XOR an inverted given vector
01010101 0x55
^ 11001111 0xcf
10011010 0x9a
XOR
XOR
"toggles selected bits"
alternating XOR self
01010101 0x55
^ 01010101 0x55
00000000 0x0
XOR
XOR
"turns off all bits"
full XOR empty
11111111 0xff
^ 00000000 0x0
11111111 0xff
XOR
XOR
"no change"
full XOR full
11111111 0xff
^ 11111111 0xff
00000000 0x0
XOR
XOR
"turns off all bits"
empty XOR empty
00000000 0x0
^ 00000000 0x0
00000000 0x0
XOR
XOR
"no change"
empty XOR full
00000000 0x0
^ 11111111 0xff
11111111 0xff
XOR
XOR
"turns on all bits"

NOT

NOT alternating
~ 01010101 0x55
10101010 0xaa
NOT
NOT
"inverts"
NOT empty
~ 00000000 0x0
11111111 0xff
NOT
NOT
"turns on all bits"
NOT full
~ 11111111 0xff
00000000 0x0
NOT
NOT
"turns off all bits"

SHL

SHL 1 alternating
<< 01010101 0x55
10101010 0xaa
SHL
SHL
"shifts to the left"
SHL 1 empty
<< 00000000 0x0
00000000 0x0
SHL
SHL
"no change"
SHL 1 full
<< 11111111 0xff
11111110 0xfe
SHL
SHL
"shifts to the left"

SHR

SHR 1 alternating
>> 01010101 0x55
00101010 0x2a
SHR
SHR
"shifts to the right"
SHR 1 empty
>> 00000000 0x0
00000000 0x0
SHR
SHR
"no change"
SHR 1 full
>> 11111111 0xff
01111111 0x7f
SHR
SHR
"shifts to the right"