[Issue 19712] std.math.sin and cos cast float to real before evaluating.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 1 12:52:32 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19712

Seb <greensunny12 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greensunny12 at gmail.com

--- Comment #1 from Seb <greensunny12 at gmail.com> ---
> With gdc-8, this shows around a 4 times difference in speed between std.math.sin and core.stdc.math.sinf.

FYI: GDC has a separate bug tracker

https://bugzilla.gdcproject.org/describecomponents.cgi

> Apparently ldc does this better.

Not apparently, it's has the same speed as the C runtime:

https://run.dlang.io/is/4AweFj

--


More information about the Digitalmars-d-bugs mailing list