bitwiseXor

fun A_Number.bitwiseXor(anInteger: A_Number, canDestroy: Boolean): A_Number

Compute the boolean exclusive-or operation for the corresponding bits of the receiver and anInteger. Both values are signed 2's complement integers.

For example, if ...11001₂ (negative seven) and ...01010₂ (positive ten) are provided, the result will be ...10011 (negative thirteen).

Return

The bitwise exclusive-or of the receiver and anInteger.

Parameters

anInteger

The integer to combine with the receiver using the bitwise exclusive-or operation.

canDestroy

Whether the receiver or anInteger can be recycled or destroyed if it happens to be mutable.