Bitwise operations: Difference between revisions

Content deleted Content added
CalmoSoft (talk | contribs)
mNo edit summary
Line 2,494: Line 2,494:
2 A [»B] 10
2 A [»B] 10
</pre>
</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}}==
=={{header|RLaB}}==