[commit: ghc] wip/T9281: DRAFT: Implement new integer-gmp2 from scratch (re #9281) (514badc)

git at git.haskell.org git at git.haskell.org
Tue Jul 22 11:55:13 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T9281
Link       : http://ghc.haskell.org/trac/ghc/changeset/514badce64ef11ff65e08aee08238b5f007d9af6/ghc

>---------------------------------------------------------------

commit 514badce64ef11ff65e08aee08238b5f007d9af6
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Fri Jul 18 15:02:43 2014 +0200

    DRAFT: Implement new integer-gmp2 from scratch (re #9281)
    
    Summary:
    (preliminary commit message)
    
    This is done as a separate integer-gmp2 backend library because it
    turned out to become a complete rewrite from scratch. This has been
    tested only on Linux/x86_64 so far. The code has been written while
    taking into account Linux/i386 and "64-bit" Windows, but will probably
    need some tweaking to get right.
    
    Also, we don't do any autoconf stuff anymore, and rely on Cabal's
    "extra-libraries: gmp" to do the right thing (which probably won't work
    everywhere)
    
    Moreover, this is currently a big huge patch, which could easily be
    split into 2 or 3 commits.
    
    Test Plan: nofib & testsuite
    
    Reviewers: #ghc, austin
    
    Subscribers: simonmar, relrod, carter
    
    Differential Revision: https://phabricator.haskell.org/D82


>---------------------------------------------------------------

514badce64ef11ff65e08aee08238b5f007d9af6
 compiler/coreSyn/CorePrep.lhs                      |    4 +
 compiler/ghc.mk                                    |    8 +-
 compiler/prelude/PrelNames.lhs                     |    9 +-
 compiler/prelude/TysWiredIn.lhs                    |   32 +-
 ghc.mk                                             |    4 +-
 libraries/base/GHC/Real.lhs                        |    6 +
 libraries/base/base.cabal                          |   19 +-
 libraries/{ghc-prim => integer-gmp2}/.gitignore    |    0
 libraries/integer-gmp2/LICENSE                     |   30 +
 libraries/integer-gmp2/cbits/primops.cmm           |   29 +
 libraries/integer-gmp2/cbits/wrappers.c            |  318 ++++
 libraries/integer-gmp2/integer-gmp2.cabal          |   52 +
 .../src/GHC/Integer.hs}                            |   47 +-
 .../integer-gmp2/src/GHC/Integer/GMP2/Internals.hs |  127 ++
 .../integer-gmp2/src/GHC/Integer/Logarithms.hs     |   73 +
 .../src/GHC/Integer/Logarithms/Internals.hs        |  118 ++
 libraries/integer-gmp2/src/GHC/Integer/Type.hs     | 1603 ++++++++++++++++++++
 rules/foreachLibrary.mk                            |    2 +
 18 files changed, 2454 insertions(+), 27 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 514badce64ef11ff65e08aee08238b5f007d9af6


More information about the ghc-commits mailing list