How to deal with inline asm functions in Phobos/druntime?
Kai Nacke via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Mon Apr 13 13:32:03 PDT 2015
On Sunday, 12 April 2015 at 22:35:20 UTC, Johan Engelen wrote:
> I wrote a non-asm ilogb, that actually runs quite a bit faster
> than what DMD or LDC do standard, and should also be much more
> portable.
> See
> https://github.com/D-Programming-Language/phobos/pull/3186
Nice! For LDC you can replace bsr with intrinsic llvm.ctlz.i#. It
is a template and also CTFE enabled.
Regards,
Kai
More information about the digitalmars-d-ldc
mailing list