Returns the bitwise negation of x. For any integer x, the following identity holds:
x
assert(bit32.bnot(x) == (-1 - x) % 2^32)
Returns the bitwise negation of
x
. For any integerx
, the following identity holds:assert(bit32.bnot(x) == (-1 - x) % 2^32)