Performs an exclusive OR.
Class
Elemental function
Result Type and Attributes
Same as I.
Result Value
The result has the value obtained by combining I and J bit-by-bit according to the following truth table:
I J IEOR (I,J)
-----------------
1 1 0
1 0 1
0 1 1
0 0 0
The bits are numbered 0 to BIT_SIZE(I)-1, from right to left.
Examples
IEOR (1, 3) has the value 2. See Integer Bit Model.
Specific Name | Argument Type | Result Type | Pass As Arg? |
---|---|---|---|
IEOR (1) | any integer | same as argument | yes |
XOR (1) | any integer | same as argument | yes |
Notes: