Include sqrt and remainder into FloatingPoint protocol as built in functions as required by IEEE754


(Björn Forster) #1

The IEEE754 standard requires a standard conform floating point
implementation besides add,mul,sub,div and rounding functions and lots of
other things also to provide sqrt and remainder as builtin function.
Shouldn't be sqrt and remainder (or mod) also be added to the FloatingPoint
protocol now that also the rounding functions might be added with SE-0113:
Add integral rounding functions to FloatingPoint
<https://github.com/apple/swift-evolution/blob/master/proposals/0113-rounding-functions-on-floatingpoint.md>
?

Kind Regards,
Björn


(Xiaodi Wu) #2

As mentioned in the other thread, these are already accepted for inclusion
as part of SE-0067.

···

On Fri, Jul 1, 2016 at 10:35 Björn Forster <swift-evolution@swift.org> wrote:

The IEEE754 standard requires a standard conform floating point
implementation besides add,mul,sub,div and rounding functions and lots of
other things also to provide sqrt and remainder as builtin function.
Shouldn't be sqrt and remainder (or mod) also be added to the FloatingPoint
protocol now that also the rounding functions might be added with SE-0113:
Add integral rounding functions to FloatingPoint
<https://github.com/apple/swift-evolution/blob/master/proposals/0113-rounding-functions-on-floatingpoint.md>
?

Kind Regards,
Björn
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution