Speed kills
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 17 10:26:47 PST 2016
On Monday, 15 February 2016 at 23:13:13 UTC, Jack Stouffer wrote:
> On Monday, 15 February 2016 at 22:29:00 UTC, Basile B. wrote:
>> we could get ceil/trunc/round/floor, also almost as easily
>> fmod, hypoth.
>> classic but I dont get why thery're not in std.math.
>
> Seems like you know a lot about the subject, and I know you
> contributed to phobos before, so how about making a PR for this
> :)
In the meantime:
https://github.com/BBasile/iz/blob/master/import/iz/math.d
Actually when i've participated to this conversation I didn't
remember that it was not good on X86. Using SSE rouding is really
only good on AMD64, otherwise loading the input parameter "sucks"
a lot (even for a 32 bit float since it's not directly in EAX or
XMMO).
Anyway, not good for phobos, why? When looking for documentation
yesterday night I've landed on a post by Walter who explained
that the library for a system programming language shouldn't be
specific to an architecture.
More information about the Digitalmars-d
mailing list