[GHC] #10364: Feature request: Add support for FMA

GHC ghc-devs at haskell.org
Wed Apr 29 02:00:51 UTC 2015


#10364: Feature request: Add support for FMA
-------------------------------------+-------------------------------------
        Reporter:  lerkok            |                   Owner:  ekmett
            Type:  feature request   |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Core Libraries    |                 Version:  7.11
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by ekmett):

 This probably should go out through a standard libraries@ proposal process
 first, to get a sense of how willing the community would be to accept a
 change that far up the chain. You may get some horribly long
 `fusedMultiplyAdd` name though. =) I could definitely see putting it in
 RealFloat. We had a proposal last year for adding things like `expm1` and
 `log1p`, etc. which passed, which will involve adding members nearby.

 Warning though: when we lobbied for `expm1` the comunity pushed back
 against having sensible defaults like the one you mention here and
 preferred leaving it undefined, to prompt people to fill them in
 proactively. I'm not sure that is/was a good idea, but some folks fought
 pretty hard against defaults that might lose precision favoring bottoms
 instead.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10364#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list