summaryrefslogtreecommitdiff
path: root/testsuite/tests/numeric
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-11-18 16:52:02 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2014-11-19 11:02:09 +0100
commit42244668af6d8c1dd6a2d64af90ed57d8ecd8d88 (patch)
tree9455cec1be6abbe8a1d2c6a1da4ed7d3838fc8a4 /testsuite/tests/numeric
parent7c748d9fcf12bd16e0de56187fa6fcf3d6dbf39a (diff)
downloadhaskell-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/tests/numeric')
0 files changed, 0 insertions, 0 deletions