Menu

operators-bxor

Will Pittenger

Provides a way to XOR together two unsigned integers such that each bit in the result is the boolean XOR of the two corresponding bits in the operands. "A bxor B" is equivalent to the the ASIL code "(a band bnot b) bor (bnot a band b)" Implemented by the types byte, word, dbyte, qbyte, and obyte.

Typical prototype

The "T" represents the actual unsigned integer type being used.

operator bxor var T left, var T right
  returns T

Related

Wiki: Operators
Wiki: operators-and
Wiki: operators-band
Wiki: operators-bnand
Wiki: operators-bnor
Wiki: operators-bnot
Wiki: operators-bor
Wiki: operators-bxnor
Wiki: operators-nand
Wiki: operators-nor
Wiki: operators-not
Wiki: operators-or
Wiki: operators-xnor
Wiki: operators-xor