Bitwise operations: Difference between revisions

Content added Content deleted
(Added uBasic/4tH version)
Line 2,325: Line 2,325:


_rotr Param (2) : Return (OR(SHL(a@, -b@), SHL(a@, Info("wordsize")-b@)))
_rotr Param (2) : Return (OR(SHL(a@, -b@), SHL(a@, Info("wordsize")-b@)))
_rotl Param (2) : Return (OR(SHL(a@, b@), SHL(a@, -(Info("wordsize")-b@))))</syntaxhighlight>
_rotl Param (2) : Return (OR(SHL(a@, b@), SHL(a@, -Info("wordsize")+b@)))</syntaxhighlight>
{{Out}}
{{Out}}
<pre>x = 10
<pre>x = 10