bit.xor

Bitwise 'exclusive or'

Prototype

n = bit.xor (a, b, ...)

Description

This takes one or more arguments. All are converted to signed 'long long' (64-bit integers). The result is all arguments "exclusive or-ed" together bitwise.
eg.

print (bit.xor (15, 1)) --> 14

Lua functions

Topics