ligo/src/test/contracts/bitwise_arithmetic.religo

6 lines
192 B
Plaintext
Raw Normal View History

2019-12-10 17:47:31 +04:00
/* Test ReasonLigo bitwise operators */
let or_op = (n: nat): nat => Bitwise.lor(n, 4n);
let and_op = (n: nat): nat => Bitwise.land(n, 7n);
let xor_op = (n: nat): nat => Bitwise.lxor(n, 7n);