Expose new internal exponentiation primitives
authorHerbert Valerio Riedel <hvr@gnu.org>
Sun, 29 Sep 2013 08:05:05 +0000 (10:05 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sun, 29 Sep 2013 16:06:43 +0000 (18:06 +0200)
commit4d516855241b70eb687d95e3c121428de885e83e
tree4484648a1ba4b58ee8a30116fa7f4d458cbf0ea9
parent345c31648808d4784d5a65ca5168a05eb5f8ffbc
Expose new internal exponentiation primitives

This exposes the GMP functions `mpz_pow_ui()`, `mpz_powm()`, and
`mpz_invert()` as `powInteger`, `powModInteger`, and `recipModInteger`
respectively in the module `GHC.Integer.GMP.Internals`.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
libraries/integer-gmp/GHC/Integer/GMP/Internals.hs
libraries/integer-gmp/GHC/Integer/GMP/Prim.hs
libraries/integer-gmp/GHC/Integer/Type.lhs
libraries/integer-gmp/cbits/gmp-wrappers.cmm