[commit: packages/integer-gmp] master: Expose new internal exponentiation primitives (97c101b)

git at git.haskell.org git
Tue Oct 1 10:07:50 UTC 2013


Repository : ssh://git at git.haskell.org/integer-gmp

On branch  : master
Link       : http://git.haskell.org/packages/integer-gmp.git/commitdiff/97c101b7363f84d925a600acb56a9fa3a997ea0d

>---------------------------------------------------------------

commit 97c101b7363f84d925a600acb56a9fa3a997ea0d
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sun Sep 29 10:05:05 2013 +0200

    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 at gnu.org>


>---------------------------------------------------------------

97c101b7363f84d925a600acb56a9fa3a997ea0d
 GHC/Integer/GMP/Internals.hs |    2 +-
 GHC/Integer/GMP/Prim.hs      |   19 +++++++++++++++++
 GHC/Integer/Type.lhs         |   39 ++++++++++++++++++++++++++++++++++
 cbits/gmp-wrappers.cmm       |   48 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 107 insertions(+), 1 deletion(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 97c101b7363f84d925a600acb56a9fa3a997ea0d



More information about the ghc-commits mailing list