Skip to content

Commit

Permalink
Enable FMA primops on GHC 9.8.2 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Feb 29, 2024
1 parent 67c1515 commit e0015bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fp-ieee/src/Numeric/Floating/IEEE/Internal/FMA.hs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ twoProduct_nonscaling a b =
twoProductFloat :: Float -> Float -> (Float, Float)
twoProductDouble :: Double -> Double -> (Double, Double)

#if defined(HAS_FMA_PRIM) && 0
-- Disabled for now: https://gitlab.haskell.org/ghc/ghc/-/issues/24160
#if defined(HAS_FMA_PRIM) && MIN_VERSION_GLASGOW_HASKELL(9, 8, 2, 0)
-- GHC 9.8.1 is buggy: https://gitlab.haskell.org/ghc/ghc/-/issues/24160

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

0 comments on commit e0015bf

Please sign in to comment.