xnor

Name

xnor — bitwise xnor

Syntax

expression xnor expression

Domain

xnor : Z x Z -> Z

Example

2 xnor 4 = -7

Description

Logical xnor yields the following bitwise combinations: 0 xnor 0 = 1, 0 xnor 1 = 0, 1 xnor 0 = 0 and 1 xnor 1 = 1. The xnor operator is the exact opposite of the xor operator. If the expressions are not in Z, they are truncated before the bitwise xnor is performed.