bitCount function

int bitCount(
  1. int n
)

Implementation

int bitCount(int n) {
  var lo30Bits = n & (_30Bits - 1);
  var hi22Bits = (n - lo30Bits) ~/ _30Bits;
  return _bitCount32(lo30Bits) + _bitCount32(hi22Bits);
}