[Git][ghc/ghc][master] Don't use timesInt2# with GHC < 8.11 (fix #18358)

Marge Bot gitlab at gitlab.haskell.org
Wed Jun 24 02:50:55 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
b5768cce by Sylvain Henry at 2020-06-23T22:50:49-04:00
Don't use timesInt2# with GHC < 8.11 (fix #18358)

- - - - -


1 changed file:

- libraries/ghc-bignum/src/GHC/Num/Integer.hs


Changes:

=====================================
libraries/ghc-bignum/src/GHC/Num/Integer.hs
=====================================
@@ -407,7 +407,7 @@ integerMul x        (IS 1#)  = x
 integerMul (IS 1#)  y        = y
 integerMul x        (IS -1#) = integerNegate x
 integerMul (IS -1#) y        = integerNegate y
-#if __GLASGOW_HASKELL__ < 809
+#if __GLASGOW_HASKELL__ < 811
 integerMul (IS x)   (IS y)   = case mulIntMayOflo# x y of
    0# -> IS (x *# y)
    _  -> case (# isTrue# (x >=# 0#), isTrue# (y >=# 0#) #) of



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b5768cce0214e20937f8e1d41ef1d9b5613b02ae

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b5768cce0214e20937f8e1d41ef1d9b5613b02ae
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200623/05996a32/attachment-0001.html>


More information about the ghc-commits mailing list