Anonymous user
Bitwise operations: Difference between revisions
m
→{{header|Elena}}
VincentARM (talk | contribs) (add task to aarch64 assembly raspberry pi) |
imported>Arakov |
||
Line 3,171:
=={{header|Elena}}==
ELENA
<syntaxhighlight lang="elena">import extensions;
Line 3,178:
bitwiseTest(y)
{
console.printLine(self," and ",y," = ",self
console.printLine(self," or ",y," = ",self
console.printLine(self," xor ",y," = ",self
console.printLine("not ",self," = ",self.
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
|