equal function

int equal(
  1. int b,
  2. int c
)

equal returns 1 if b == c and 0 otherwise, assuming that b and c are non-negative.

Implementation

int equal(int b, int c) {
  if (b == c) {
    return 1;
  } else {
    return 0;
  }
//  var x = b ^ c;
//  x--;
//  return x >> 31;
}