int bitwiseAnd(int a, int b)

Returns a bitwise and with b. Computation is done using modulo 2 arithmetic.

int bitwiseOr(int a, int b)

Returns a bitwise or with b. Computation is done using modulo 2 arithmetic.

int bitwiseXor(int a, int b)

Returns a bitwise xor with b. Computation is done using modulo 2 arithmetic.

int pow(int x, int n, int m)

return x^n

int shiftLeft(int a, int b)

Returns a shifted to the left by b bits.

int shiftRight(int a, int b)

Returns a shifted to the right by b bits.