negative static method

int negative(
  1. int b
)

Implementation

static int negative(int b) {
  BigInt x = b.toBig;
  x >>= 63;
  return (x & BigInt.one).toInt();
}