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

GHC ghc-devs at haskell.org
Sun Nov 23 21:41:58 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:"6d1c8ec79adf566d57d2c35aac8ff6635412d108/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="6d1c8ec79adf566d57d2c35aac8ff6635412d108"
 Persist build-time GMP ver to `HsIntegerGmp.h`

 This creates the additional macro definitions in `HsIntegerGmp.h` which
 are useful for 3rd party `integer-gmp`-addon libraries.

 Here's an example for the definitions created for the in-tree GMP:

   #define GHC_GMP_INTREE     1
   #define GHC_GMP_VERSION_MJ 5
   #define GHC_GMP_VERSION_MI 0
   #define GHC_GMP_VERSION_PL 4
   #define GHC_GMP_VERSION   (5 * 10000 + 0 * 100 + 4)

 And here's an example for a system-installed GMP:

   #define GHC_GMP_INTREE     0
   #define GHC_GMP_VERSION_MJ 6
   #define GHC_GMP_VERSION_MI 0
   #define GHC_GMP_VERSION_PL 0
   #define GHC_GMP_VERSION   (6 * 10000 + 0 * 100 + 0)

 Part of #9281

 Reviewed By: ekmett (via D522)
 }}}

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


More information about the ghc-tickets mailing list