Initializing help system before first use

bitflip

bitflip


Purpose
Flip bits (bitwise XOR).
Synopsis
function bitflip(i:integer, j:integer):integer
Arguments
Integer to be set
Value to flip
Return value
Bitwise XOR of the operands.
Example
In the following, i takes the value 9, j takes the value 141, and k takes the value 7:
i:= bitflip(12, 5)
j:= biflip(13, 128)
k:= bitflip(13, 10)
Further information
This function computes the bitwise exclusive OR of its operands.
Related topics