≈ the.bay.news

"Relaxed" floating-point operators

Swift Forums
"Relaxed" floating-point operators
Proposal here: Draft of relaxed floating-point operators. by stephentyrone · Pull Request #3545 · swiftlang/swift-evolution · GitHub Summary of changes Define operators on floating-point types that permit the compiler to apply "normal" algebraic transformations that make it easier for users to explicitly trade-off bitwise reproducibility for improved performance. Motivation Consider the following function: func foo(a: Float, b: Float, c: Float, d: Float) -> Float { a*b + c + d } Evaluatin...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.