SIMD-specialized overloads of Phobos algorithms

Johan Engelen j at j.nl
Sun Jun 30 15:40:07 UTC 2019


On Friday, 28 June 2019 at 22:53:45 UTC, Nicholas Wilson wrote:
> On Friday, 28 June 2019 at 19:53:10 UTC, Per Nordlöw wrote:
>> On Friday, 28 June 2019 at 16:30:31 UTC, kinke wrote:
>>> It's `-mcpu=native`.
>>
>> Can/Could the value of this switch be detected at compile-time?
>
> It's probably already implemented as an LDC specific __trait,

Indeed:
https://wiki.dlang.org/LDC-specific_language_changes#targetCPU

-Johan



More information about the Digitalmars-d mailing list