On 24 Aug 2014 16:26, "ketmar via Digitalmars-d-announce" <
> On Sun, 24 Aug 2014 16:16:43 +0100
> Iain Buclaw via Digitalmars-d-announce
> <email@example.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.