Is there a possibility to compute the result of an integer equality comparison by only using arithmetic or bitwise operations? Negative values use the two-complement representation.
I am looking for a generic algorithm, which results in two possible values for equality and inequality but not using comparison operations.