Anonymous user
Bitwise operations: Difference between revisions
→{{header|J}}: Fixed damage inadvertantly done to examples.
(→{{header|J}}: Segregated bitwise and rotation/shift functions. Simplified verb 'combine'.) |
(→{{header|J}}: Fixed damage inadvertantly done to examples.) |
||
Line 224:
f=: (32#2)&#: { '.x'"_
Examples of execution, with output:
_8160 134217720 _8 _8129 268435448
Bitwise x AND y:
Bitwise x OR y:
Bitwise x XOR y:
Bitwise NOT-x:
Left shift:
Right shift:
Right signed shift:
Left rotate:
Right rotate:
f _255 (bwo, brs) 5 NB. 32-bit diagrams
...............................x
|