secp256k1U128Rshift static method

void secp256k1U128Rshift(
  1. Secp256k1Uint128 r,
  2. int n
)

Implementation

static void secp256k1U128Rshift(Secp256k1Uint128 r, int n) {
  // Ensure the shift value is valid
  if (n >= 128) {
    throw CryptoException.failed(
      "secp256k1U128Rshift",
      reason: "Shift value n must be less than 128.",
    );
  }
  // r.r = (r.r >>= n);
  r.set(r.r >> n);
}