numberOfTrailingZeros method

  1. @override
int numberOfTrailingZeros()

Returns the number of trailing zeros in this Int64 as an int between 0 and 64.

Implementation

@override
int numberOfTrailingZeros() {
  int zeros = u.numberOfTrailingZeros(_l);
  if (zeros < 32) {
    return zeros;
  }

  zeros = u.numberOfTrailingZeros(_m);
  if (zeros < 32) {
    return _BITS + zeros;
  }

  zeros = u.numberOfTrailingZeros(_h);
  if (zeros < 32) {
    return _BITS01 + zeros;
  }
  // All zeros
  return 64;
}