Bitwise operations: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: simplified some functions, changed some comments and whitespace, used a template for output.) |
m (→{{header|REXX}}: added wording to the REXX section boxed comment.) |
||
Line 2,946: | Line 2,946: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
<pre> |
<pre> |
||
╔═══════════════════════════════════════════════════════════════════════════════════════╗ |
|||
╔════════════════════════════════════════════════════════════════════════════════════╗ |
|||
║ Since REXX stores numbers (indeed, all values) as characters, it makes no sense to ║ |
|||
║ "rotate" a value, since there aren't any boundaries for the value. I.E.: there ║ |
|||
║ isn't any 32─bit word "container" or "cell" (for instance) to store an integer. ║ |
|||
║ ║ |
|||
╚════════════════════════════════════════════════════════════════════════════════════╝ |
|||
║ Furthermore, since REXX numbers can be arbitrary precision, the concept of rotating ║ |
|||
║ a number has no meaning. ║ |
|||
╚═══════════════════════════════════════════════════════════════════════════════════════╝ |
|||
</pre> |
</pre> |
||
<lang rexx>/*REXX program performs bit─wise operations on integers: & | && ¬ «L »R */ |
<lang rexx>/*REXX program performs bit─wise operations on integers: & | && ¬ «L »R */ |