D for the Win

Iain Buclaw via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Aug 24 08:32:00 PDT 2014


On 24 Aug 2014 16:26, "ketmar via Digitalmars-d-announce" <
digitalmars-d-announce at puremagic.com> wrote:
>
> On Sun, 24 Aug 2014 16:16:43 +0100
> Iain Buclaw via Digitalmars-d-announce
> <digitalmars-d-announce at puremagic.com> wrote:
>
> > That's because floor isn't an intrinsic.  The crippling speed issue
> > was the fact that floor computed and returned at real precision.
> i'm testing on x86, and the difference between 'call floorf' and
> inlining is significant. gcc inlines floorf() call, and gdc does not.
>

Inline is not quite correct. Floor is a function recognised by the
compiler, so if the backend knows an instruction for it, it will favour
that intrinsic over calling an external function.

Iain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20140824/e4005dbe/attachment.html>


More information about the Digitalmars-d-announce mailing list