summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/integer/integerPowMod.hs
Commit message (Collapse)AuthorAgeFilesLines
* Bignum: implement integerPowMod (#18427)Sylvain Henry2020-10-021-11/+25
| | | | | | | 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.
* Bignum: fix powMod for gmp backend (#18515)Sylvain Henry2020-07-301-10/+3
| | | | | Also reenable integerPowMod test which had never been reenabled by mistake.
* Split integerGmpInternals test in several partsSylvain Henry2020-01-041-0/+35
This is to prepare for ghc-bignum which implements some but not all of gmp functions.