Elemental Intrinsic Function (Generic): Performs an exclusive OR on corresponding bits. This function can also be specified as XOR.
Syntax
Results:
The result type is the same as i. The result value is derived 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 model for the interpretation of an integer value as a sequence of bits is shown in Model for Bit Data.
Specific Name | Argument Type | Result Type |
---|---|---|
INTEGER(1) | INTEGER(1) | |
IIEOR | INTEGER(2) | INTEGER(2) |
JIEOR | INTEGER(4) | INTEGER(4) |
KIEOR | INTEGER(8) | INTEGER(8) |
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB
Examples
IEOR (1, 4) has the value 5.
IEOR (3, 10) has the value 9.
The following shows another example:
INTEGER I
I = IEOR(240, 90) ! returns 170