bitflip
bitflip |
Purpose
Synopsis
function bitflip(i:integer, j:integer):integer
Arguments
i
|
Integer to be set
|
j
|
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