[GHC] #9281: Rewrite `integer-gmp` to use only non-allocating GMP functions

GHC ghc-devs at haskell.org
Fri Nov 28 16:21:19 UTC 2014


#9281: Rewrite `integer-gmp` to use only non-allocating GMP functions
-------------------------------------+-------------------------------------
              Reporter:  hvr         |            Owner:  hvr
                  Type:  task        |           Status:  patch
              Priority:  normal      |        Milestone:  7.10.1
             Component:  Core        |          Version:
  Libraries                          |         Keywords:  integer-gmp
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:  #8647
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:  Phab:D82    |
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"2eecf348a62c47abd2f5de5f7eac5f7a3a779107/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="2eecf348a62c47abd2f5de5f7eac5f7a3a779107"
 Re-activate `integerGmpInternals` test (#9281)

 The `integerGmpInternals` test was disabled in
 c774b28f76ee4c220f7c1c9fd81585e0e3af0e8a as many of the primitives
 tested in that test weren't available yet w/ `integer-gmp2`.

 However, most operations have been reimplemented by now, with the
 exception of

     recipModInteger  :: Integer -> Integer -> Integer
     gcdExtInteger    :: Integer -> Integer -> (Integer, Integer)
     powModSecInteger :: Integer -> Integer -> Integer -> Integer
     powModInteger    :: Integer -> Integer -> Integer -> Integer
     powInteger       :: Integer -> Word -> Integer

 which are still missing, and will (time permitting) be reimplemented
 over time.
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9281#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list