Bitwise operations: Difference between revisions

m
(add task to aarch64 assembly raspberry pi)
imported>Arakov
Line 3,171:
 
=={{header|Elena}}==
ELENA 46.x :
<syntaxhighlight lang="elena">import extensions;
 
Line 3,178:
bitwiseTest(y)
{
console.printLine(self," and ",y," = ",self.and( & y));
console.printLine(self," or ",y," = ",self.or( | y));
console.printLine(self," xor ",y," = ",self.xor( ^ y));
console.printLine("not ",self," = ",self.InvertedBInverted);
console.printLine(self," shr ",y," = ",self.shiftRight(y));
console.printLine(self," shl ",y," = ",self.shiftLeft(y));
Line 3,200:
255 shl 2 = 1020
</pre>
 
=={{header|Elixir}}==
<syntaxhighlight lang="elixir">defmodule Bitwise_operation do
Anonymous user