- Calculates the bitwise exclusive or of two numbers.
- The first number.
- The second number.
Superseded by ^^ operator Edit
^^ operator added in 0.2.0 performs the same function as
bxor() and is now the recommended way to do bitwise xor, as it uses fewer tokens, costs fewer cycles at runtime, and runs on the real host CPU much more efficiently. Simply replace
-- 0x5 = 0101 binary -- xor 0x9 = 1001 binary -- ------- -- 0xc = 1100 binary print(bxor(0x5, 0x9)) -- 12 (0xc) print(0x5 ^^ 0x9) -- preferred method