I am trying to write a simple C bitwise operation that returns YES if the bits are equal. Truth table is the following:
I tried various combinations of AND,XOR and OR and no luck. Granted, I could scan each bit pair and ask the question using an "IF" statement but rather do it more elegantly.
This is an example of what I need:
x = 251 - 11111011
y = 18 - 00010010
r = 22 - 00010110