diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-11-18 16:52:02 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-11-19 11:02:09 +0100 |
commit | 42244668af6d8c1dd6a2d64af90ed57d8ecd8d88 (patch) | |
tree | 9455cec1be6abbe8a1d2c6a1da4ed7d3838fc8a4 /testsuite/.gitignore | |
parent | 7c748d9fcf12bd16e0de56187fa6fcf3d6dbf39a (diff) | |
download | haskell-42244668af6d8c1dd6a2d64af90ed57d8ecd8d88.tar.gz |
Reimplement im/export primitives for integer-gmp2
The import/export operations were available in `integer-gmp-0.5.1`
already, but need to be reimplemented from scratch for the
`integer-gmp-1.0.0` rewrite.
This also adds a few more operations than were previously available for
use w/ the `BigNat` type (which will be useful for implementing
serialisation for the upcoming `Natural` type)
Specifically, the following operations are (re)added (albeit with
slightly different type-signatures):
- `sizeInBaseBigNat`
- `sizeInBaseInteger`
- `sizeInBaseWord#`
- `exportBigNatToAddr`
- `exportIntegerToAddr`
- `exportWordToAddr`
- `exportBigNatToMutableByteArray`
- `exportIntegerToMutableByteArray`
- `exportWordToMutableByteArray`
- `importBigNatFromAddr`
- `importIntegerFromAddr`
- `importBigNatFromByteArray`
- `importIntegerFromByteArray`
NOTE: The `integerGmpInternals` test-case is updated but not yet
re-enabled as it contains tests for other primitives which aren't
yet reimplemented.
This addresses #9281
Reviewed By: austin, duncan
Differential Revision: https://phabricator.haskell.org/D480
Diffstat (limited to 'testsuite/.gitignore')
0 files changed, 0 insertions, 0 deletions