xor package:ghc-internal
Monoid under bitwise XOR.
>>> getXor (Xor 0xab <> Xor 0x12) :: Word8
185
Given an array, and offset in machine words, and a value to XOR,
atomically XOR the value into the element. Returns the value of the
element before the operation. Implies a full memory barrier.
Warning: this can fail with an unchecked exception.
Given an address, and a value to XOR, atomically XOR the value into
the element. Returns the value of the element before the operation.
Implies a full memory barrier.
Warning: this can fail with an unchecked exception.