The semantics of these operators are exactly the same as for the corresponding bit.* functions. They work on plain Lua numbers, as well as FFI cdata integers and integer vectors. Check the FFI ...