Unless otherwise stated, all functions accept numeric arguments in the range (-2^51, +2^51);
each argument is normalized to the remainder of its division by 2^32 and truncated to an integer
(in some unspecified way), so that its final value falls in the range [0, 2^32 - 1].
Similarly, all results are in the range [0, 2^32 - 1].
Note that bit32.bnot(0) is 0xFFFFFFFF, which is different from -1.
Unless otherwise stated, all functions accept numeric arguments in the range
(-2^51, +2^51)
; each argument is normalized to the remainder of its division by2^32
and truncated to an integer (in some unspecified way), so that its final value falls in the range[0, 2^32 - 1]
. Similarly, all results are in the range[0, 2^32 - 1]
. Note thatbit32.bnot(0)
is0xFFFFFFFF
, which is different from -1.