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

tsbockman via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 22 11:29:30 PST 2016


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

That's how (almost) ALL of the intrinsics in `core.bitop` and 
`core.math` are supposed to work. If it's not overriding the 
bodies, that's a bug.


More information about the Digitalmars-d mailing list