How do I write __simd(void16*, void16) ?

Etienne via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 10 06:09:09 PDT 2014


On 2014-10-10 9:01 AM, ketmar via Digitalmars-d-learn wrote:
>    import core.simd;
>    import gcc.builtins;
>    void main () {
>      float4 a, b;
>      auto tmp = __builtin_ia32_mulps(a, b); // a*b
>    }
>
> i don't know what the hell this means, but at least it accepts types
> from core.simd. ;-) so i assume that other such builtins will accept
> other types too.

Nice! Nobody knows simd but they all know how to make it work. Go figure =)


More information about the Digitalmars-d-learn mailing list