[commit: ghc] wip/T16197: Remove from `base` obsolete CPP for `integer-gmp` (f7def74)

git at git.haskell.org git at git.haskell.org
Thu Jan 17 13:58:42 UTC 2019


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

On branch  : wip/T16197
Link       : http://ghc.haskell.org/trac/ghc/changeset/f7def747cf0da103237cd17af5c8bfdbdf5823b2/ghc

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

commit f7def747cf0da103237cd17af5c8bfdbdf5823b2
Author: Alec Theriault <alec.theriault at gmail.com>
Date:   Tue Jan 8 10:41:50 2019 -0800

    Remove from `base` obsolete CPP for `integer-gmp`
    
      * `GHC.Natural` now exports the same functions (regardless of integer backend)
      * remove unnecessary CPP around instances
      * remove the 'OPTIMISE_INTEGER_GCD_LCM' flag - almost all of those optimizations
        now work regardless of which integer backend is used
    
    Note that some CPP still remains for situations where there are backend-specific
    optimization hacks (like a more efficient GMP-only `gcd` for `Int#` and `Word#`).


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

f7def747cf0da103237cd17af5c8bfdbdf5823b2
 libraries/base/Data/Bits.hs   | 54 -------------------------------------------
 libraries/base/GHC/Enum.hs    | 28 ++--------------------
 libraries/base/GHC/Natural.hs | 20 ++++++++++++----
 libraries/base/GHC/Num.hs     | 26 ---------------------
 libraries/base/GHC/Read.hs    |  7 ------
 libraries/base/GHC/Real.hs    | 52 ++++++++---------------------------------
 libraries/base/base.cabal     |  1 -
 7 files changed, 26 insertions(+), 162 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 f7def747cf0da103237cd17af5c8bfdbdf5823b2


More information about the ghc-commits mailing list