Skip to content
  • Sylvain Henry's avatar
    Bignum: implement integerPowMod (#18427) · 8dd4f405
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    Incidentally fix powModInteger which was crashing in integer-gmp for
    negative exponents when the modular multiplicative inverse for the base
    didn't exist. Now we compute it explicitly with integerRecipMod so that
    every backend returns the same result without crashing.
    8dd4f405