secp256k1I128Det static method

void secp256k1I128Det(
  1. Secp256k1Int128 r,
  2. BigInt a,
  3. BigInt b,
  4. BigInt c,
  5. BigInt d,
)

Implementation

static void secp256k1I128Det(
    Secp256k1Int128 r, BigInt a, BigInt b, BigInt c, BigInt d) {
  BigInt ad = (a * d).toSigned128;
  BigInt bc = (b * c).toSigned128;
  r.set(ad - bc);
}