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

Ilya Yaroshenko via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 22 11:27:11 PST 2016


On Tuesday, 22 November 2016 at 18:57:59 UTC, tsbockman wrote:
> 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.

Does DMD overrides bodies for bsf and bsr? It would be surprised 
to me.


More information about the Digitalmars-d mailing list