!!!Please add intrinsics module for DMD DRuntime!!!

tsbockman via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 22 10:57:59 PST 2016


On Tuesday, 22 November 2016 at 17:07:08 UTC, Ilya Yaroshenko 
wrote:
> No, LDC and GDC cannot detect it. Proof - 
> https://godbolt.org/g/bsAFU8 . Current LDC DRuntime uses 
> intrinsics instead of software implementation.
>
> Ilya

Your test fails because you aren't actually using `core.bitop`. 
Intrinsics are detected based on fully qualified names. As soon 
as you copy `bsf()` and `bsr()` outside of `core.bitop`, the FQN 
changes and they're not intrinsics anymore.


More information about the Digitalmars-d mailing list