Jump to content

Bitwise operations: Difference between revisions

m
no edit summary
(Modula-3)
mNo edit summary
Line 1:
[[Category:Less Than 20 Examples]]{{task|Discrete math}}
{{basic data operation}}
Write a function 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.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.