bit_xor
Returns bitwise XOR (exclusive "or") of two 32-bit integers.
bit_xor
(in n1 integer,
in n2 integer);
Description
The function returns bitwise XOR (exclusive "or") of two given integers.
On 64-bit platforms, both arguments are intentionally truncated to 32 bits,
to provide compartibility.
Examples
Bitwise-XOR
select bit_xor (18, 6);
20
select bit_xor (-18, -6);
20
select bit_xor (-18, 6);
-24