RosettaCodeData/Task/Bitwise-operations/HPPPL/bitwise-operations.hpppl

11 lines
217 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
EXPORT BITOPS(a, b)
BEGIN
PRINT(BITAND(a, b));
PRINT(BITOR(a, b));
PRINT(BITXOR(a, b));
PRINT(BITNOT(a));
PRINT(BITSL(a, b));
PRINT(BITSR(a, b));
// HPPPL has no builtin rotates or arithmetic right shift.
END;