testBit static method

bool testBit(
  1. BigInt j,
  2. int n
)

Implementation

static bool testBit(BigInt j, int n) {
  return (j >> n).toUnsigned(1).toInt() == 1;
}