integer-gmp

Integer library based on GMP

Version on this page:1.0.0.1
LTS Haskell 22.39:1.1
Stackage Nightly 2024-10-31:1.1
Latest on Hackage:1.1

See all snapshots integer-gmp appears in

BSD-3-Clause licensed by Herbert Valerio Riedel
Maintained by [email protected]
This version can be pinned in stack with:integer-gmp-1.0.0.1@sha256:b063ce1ea611dfab91ffe8a17f50f9b0c61f39c4b6feeea3205dfb0ab07b72f0,1387

Module documentation for 1.0.0.1

Changes

Changelog for integer-gmp package

1.0.0.1 Feb 2016

  • Bundled with GHC 8.0.1

  • Optimise bitBigNat/bigInteger

  • Fix minor issue in eqBigNatWord#

  • Various minor optimisations

1.0.0.0 Mar 2015

0.5.1.0 Feb 2014

  • Bundled with GHC 7.8.1

  • Improved Haddock documentation

  • New PrimBool versions of comparison predicates in GHC.Integer:

    eqInteger# :: Integer -> Integer -> Int#
    geInteger# :: Integer -> Integer -> Int#
    gtInteger# :: Integer -> Integer -> Int#
    leInteger# :: Integer -> Integer -> Int#
    ltInteger# :: Integer -> Integer -> Int#
    neqInteger# :: Integer -> Integer -> Int#
    
  • New GHC.Integer.testBitInteger primitive for use with Data.Bits

  • Reduce short-lived heap allocation and try to demote J# back to S# more aggressively. See also #8647 for more details.

  • New GMP-specific binary (de)serialization primitives added to GHC.Integer.GMP.Internals:

    importIntegerFromByteArray
    importIntegerFromAddr
    exportIntegerToAddr
    exportIntegerToMutableByteArray
    sizeInBaseInteger
    
  • New GMP-implemented number-theoretic operations added to GHC.Integer.GMP.Internals:

    gcdExtInteger
    nextPrimeInteger
    testPrimeInteger
    powInteger
    powModInteger
    powModSecInteger
    recipModInteger