Bitwise operations: Difference between revisions
m
no edit summary
mNo edit summary |
|||
Line 2,494:
2 A [»B] 10
</pre>
=={{header|Ring}}==
<lang ring>
x = 8
y = 2
see "x & y - Binary AND : " + (x & y) + nl
see "x | y - Binary OR : " + (x | y) + nl
see "x ^ y - Binary XOR : " + (x ^ y) +nl
see "~x - Binary Ones Complement : " + (~x) + nl
see "x << y - Binary Left Shift : " + (x << y) + nl
see "x >> y - Binary Right Shift : " + (x >> y) + nl
</lang>
=={{header|RLaB}}==
|