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