SIMD support...

bearophile bearophileHUGS at lycos.com
Fri Jan 6 06:12:23 PST 2012


> I see. While you design, you need to think about the other features of D :-) Is it possible to mix CPU SIMD with D vector ops?
> 
> __float4[10] a, b, c;
> c[] = a[] + b[];

And generally, if the D compiler receives just D vector ops, what's a good way for the compiler to map them efficiently (even if less efficiently than true SIMD operations written manually) to SIMD ops? Generally you can't ask all D programmers to use __float4, some of them will want to use just D vector ops, despite they are a less efficient, because they are simpler to use. So the duty of a good D compiler is to implement them too efficiently enough.

Bye,
bearophile


More information about the Digitalmars-d mailing list