Basic arithmetic operations:
w = u + v. Note that v is an unsigned integer.
w = u + v \bmod m.
w = u - v. v is an unsigned integer.
w = u - v \bmod m.
w = u * v. v is an unsigned integer.
w = u * v \bmod m.
q = dividend / divisor, r = dividend \bmod divisor. q and r may be passed as
NULL
. round should be negative or 0.
r = dividend \bmod divisor.
w = b^e \bmod m.