xHarbour Reference Documentation > Function Reference |
Performs a bitwise XOR operation with numeric integer values.
HB_BitXOr( <nInteger1>, <nInteger2> ) --> nResult
The function returns a numeric value. It is the result of the bitwise XOR operation with both parameters.
The function performs bitwise XOR operation with two integer values. It compares individual bits of both values at the same position. The bit at the same position is set in the return value, when both integer values have the bit set differently at the same position. If both integers have the same bit set or not set, i.e. when both bits are the same, the corresponding bit in the return value is not set.
See also: | ˆˆ (bitwise XOR), HB_BitAnd(), HB_BitIsSet(), HB_BitNot(), HB_BitOr() |
Category: | Bitwise functions , xHarbour extensions |
Source: | rtl\hbBitf.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com