Compute equality comparison without comparison operators
Let $W$ be the number of bits, $A, B$ integers to compare.

$Result =  
(NOT((A - B) \text{ OR } (B - A))) &gt;&gt; (W - 1)$.

Here NOT negates bits. $A - B$ and $B - A$ is zero iff numbers are equal otherwise they are of different signs which ORed together will give a negative number.
The result is $1$ if numbers are equal and $0$ otherwise.