numBitsDiffering static method

int numBitsDiffering(
  1. int a,
  2. int b
)

Implementation

static int numBitsDiffering(int a, int b) {
  return MathUtils.bitCount(a ^ b);
}