Jump to content

Bitwise operations: Difference between revisions

m (→‎{{header|Pop11}}: Restore PureBasic solution)
Line 1,367:
end function
</lang>
 
=={{header|LiveCode}}==
<lang LiveCode>put "and:" && (255 bitand 2) & comma into bitops
put " or:" && (255 bitor 2) & comma after bitops
put " xor:" && (255 bitxor 2) & comma after bitops
put " not:" && (bitnot 255) after bitops
put bitops
 
-- Ouput
and: 2, or: 255, xor: 253, not: 4294967040</lang>
LiveCode does not provide built-in bit-shift operations.
 
=={{header|LLVM}}==
<lang llvm>; ModuleID = 'test.o'
Cookies help us deliver our services. By using our services, you agree to our use of cookies.