> On Aug 2, 2017, at 7:03 PM, Karl Wagner via swift-evolution
> <swift-evolution@swift.org> wrote:
>
> It’s important to remember that computers are mathematical machines, and some
> functions which are implemented in hardware on essentially every platform
> (like sin/cos/etc) are definitely best implemented as compiler intrinsics.
sin/cos/etc are implemented in software, not hardware. x86 does have the
FSIN/FCOS instructions, but (almost) no one actually uses them to implement the
sin( ) and cos( ) functions; they are a legacy curiosity, both too slow and too
inaccurate for serious use today. There are no analogous instructions on ARM or
PPC.
– Steve
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution