tripleShift32 method

int tripleShift32(
  1. int count
)

Implementation

int tripleShift32(int count) {
  if (_isNative) {
    return (this >> count) & ~(-1 << (32 - count));
  } else {
    // assumes this > -(2^32 -1)
    count &= 0x1f;
    if (this >= 0) {
      return (this >> count);
    } else {
      return (this >> count) ^ ((0xFFFFFFFF) ^ ((1 << (32 - count)) - 1));
    }
  }
}