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)
commit97c101b7363f84d925a600acb56a9fa3a997ea0d
tree9d9c8feed7fbd0fa5094c5f1f80412aba4192b4a
parentb1c4ae424a4e07810056ca09dab4f515f50d2565
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>
GHC/Integer/GMP/Internals.hs
GHC/Integer/GMP/Prim.hs
GHC/Integer/Type.lhs
cbits/gmp-wrappers.cmm