[commit: packages/integer-gmp] wip/T8638: Add new `mpz_{sub, add}_ui`-based primops (03c093c)
git at git.haskell.org
git at git.haskell.org
Sat Jan 4 11:48:08 UTC 2014
Repository : ssh://git@git.haskell.org/integer-gmp
On branch : wip/T8638
Link : http://git.haskell.org/packages/integer-gmp.git/commitdiff/03c093c720f1ca76f62fc55d0693375b35009dd5
>---------------------------------------------------------------
commit 03c093c720f1ca76f62fc55d0693375b35009dd5
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Fri Jan 3 22:36:04 2014 +0100
Add new `mpz_{sub,add}_ui`-based primops
This adds `minusIntegerInt#`, `minusIntInteger#` and `plusIntegerInt#`
which help to reduce temporary allocations. See also previous commit
introducing `timesIntegerInt#`.
Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
>---------------------------------------------------------------
03c093c720f1ca76f62fc55d0693375b35009dd5
GHC/Integer/GMP/Prim.hs | 18 +++++++++++++++++
GHC/Integer/Type.lhs | 31 +++++++++++++++++++----------
cbits/gmp-wrappers.cmm | 50 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 89 insertions(+), 10 deletions(-)
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 03c093c720f1ca76f62fc55d0693375b35009dd5
More information about the ghc-commits
mailing list