Top

Name

bit_xor — Returns bitwise XOR (exclusive "or") of two 32-bit integers.

Synopsis

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.

Return Types

Integer.

Examples

Example 24.27. Bitwise-XOR

select bit_xor (18, 6);
20

select bit_xor (-18, -6);
20

select bit_xor (-18, 6);
-24