Menu

operators-bnand

Will Pittenger

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

Typical prototype

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

operator bnand var T left, var T right
  returns T

Related

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