equal returns 1 if b == c and 0 otherwise, assuming that b and c are non-negative.
int equal(int b, int c) { if (b == c) { return 1; } else { return 0; } // var x = b ^ c; // x--; // return x >> 31; }