# Template:LogicalOperationsTable

Jump to navigation
Jump to search

The following table describes the logical operations, where `a` and `b` are operands, and `c` is the result:

Operation Description `NOT b`*Logical negation:*Sets a bit in`c`if and only if the corresponding bit in`b`is not set.`a AND b`*Logical conjunction:*Sets a bit in`c`if and only if the corresponding bits in both`a`and`b`are set.`a OR b`*Inclusive disjunction:*Sets a bit in`c`if and only if the corresponding bits in either`a`or`b`is set.`a XOR b`*Exclusive disjunction:*Sets a bit in`c`if and only if the corresponding bits in`a`and`b`have a different state.`a EQV b`*Logical equality:*Sets a bit in`c`if and only if the corresponding bits in`a`and`b`have the same state.`a IMP b`*Logical implication:*Unsets a bit in`c`if and only if the corresponding bit in`a`is set and in`b`unset.