Bitwise operators


All bitwise operators take operand(s) of type INTEGER.
AND: The bitwise and operator is ~&.
i3 := i1 ~& i2;
 
OR: The bitwise or operator is ~|.
i3 := i1 ~| i2;
 
XOR: The bitwise exclusive or operator is ~^.
i3 := i1 ~^ i2;
 
INVERT: The invert operator is ~~.
i3 := ~~i1;
 
RIGHT SHIFT: The right shift operator is ~>.
i3 := i1~>i2;
 
LEFT SHIFT: The left shift operator is ~<.
i3 := i1~<i2;