Add `Addr#` based `{import,export}Integer` variants
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 7 Nov 2013 21:23:36 +0000 (22:23 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Thu, 7 Nov 2013 21:23:36 +0000 (22:23 +0100)
commitcaf314e79ad2e540fc6159b71d5a1ae27979f192
treec87d3c6c4b9cae2fcd903a89630872865425ba86
parent22c23c6b6395e76d9717bca43f42a52cf84fc92d
Add `Addr#` based `{import,export}Integer` variants

These follow closely the existing implementations for
`importIntegerFromByteArray` and `exportIntegerToMutableByteArray`.

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