diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2019-01-08 10:35:55 -0800 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-01-16 14:17:11 -0500 |
commit | 6e320c279ddfde1e16da204590c1c66a511d9b52 (patch) | |
tree | a2299100c2a88d84ae7f9556ee744a0e2d7f4ab5 /libraries/integer-gmp | |
parent | 582a96f422a8437f87da2539afc7d7e6772054df (diff) | |
download | haskell-6e320c279ddfde1e16da204590c1c66a511d9b52.tar.gz |
Match `integer-simple`'s API with `integer-gmp`
In `integer-simple`:
* Added an efficient `popCountInteger` and `bitInteger`
* Added an efficient `gcdInteger` and `lcmInteger`
* Made `testBitInteger` more efficient
Diffstat (limited to 'libraries/integer-gmp')
-rw-r--r-- | libraries/integer-gmp/src/GHC/Integer.hs | 2 | ||||
-rw-r--r-- | libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libraries/integer-gmp/src/GHC/Integer.hs b/libraries/integer-gmp/src/GHC/Integer.hs index ab45887793..00c26b0a7b 100644 --- a/libraries/integer-gmp/src/GHC/Integer.hs +++ b/libraries/integer-gmp/src/GHC/Integer.hs @@ -64,6 +64,8 @@ module GHC.Integer ( complementInteger, shiftLInteger, shiftRInteger, testBitInteger, + popCountInteger, bitInteger, + -- * Hashing hashInteger, ) where diff --git a/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs b/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs index 6c7fccf6c3..1d86fc1ff3 100644 --- a/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs +++ b/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs @@ -41,8 +41,6 @@ module GHC.Integer.GMP.Internals , module GHC.Integer -- ** Additional 'Integer' operations - , bitInteger - , popCountInteger , gcdInteger , gcdExtInteger , lcmInteger |