RosettaCodeData/Task/Bitwise-operations/00-TASK.txt

10 lines
405 B
Plaintext

{{basic data operation}}
;Task:
Write a routine to perform a bitwise AND, OR, and XOR on two integers, a bitwise NOT on the first integer, a left shift, right shift, right arithmetic shift, left rotate, and right rotate.
All shifts and rotates should be done on the first integer with a shift/rotate amount of the second integer.
If any operation is not available in your language, note it.
<br><br>