Skip to content

Commit

Permalink
fp-ieee: Enable FMA primitive on GHC 9.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Nov 27, 2024
1 parent c52769b commit cf756bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fp-ieee/src/Numeric/Floating/IEEE/Internal/FMA.hs
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,9 @@ twoProduct_nonscaling a b =
twoProductFloat :: Float -> Float -> (Float, Float)
twoProductDouble :: Double -> Double -> (Double, Double)

#if defined(HAS_FMA_PRIM) && MIN_VERSION_GLASGOW_HASKELL(9, 10, 1, 0)
#if defined(HAS_FMA_PRIM) && MIN_VERSION_GLASGOW_HASKELL(9, 8, 3, 0)
-- GHC 9.8.1 is buggy: https://gitlab.haskell.org/ghc/ghc/-/issues/24160
-- GHC 9.8.2 is also buggy: https://gitlab.haskell.org/ghc/ghc/-/issues/24496
-- We might use `MIN_VERSION_GLASGOW_HASKELL(9, 8, 3, 0)` once GHC 9.8.3 is released.

twoProductFloat# :: Float# -> Float# -> (# Float#, Float# #)
twoProductFloat# x y = let !r = x `timesFloat#` y
Expand Down

0 comments on commit cf756bf

Please sign in to comment.