Any usable SIMD implementation?

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 31 12:08:25 PDT 2016


On Thursday, 31 March 2016 at 08:23:45 UTC, Martin Nowak wrote:
>
> I don't want to do anything fancy, just unaligned loads, 
> stores, and integral mul/div. Is this really the current state 
> of SIMD or am I missing sth.?

I think you want to write your code using SIMD primitives.
But in case you want the compiler to generate SIMD instructions, 
perhaps @ldc.attributes.target may help you:
http://wiki.dlang.org/LDC-specific_language_changes#.40.28ldc.attributes.target.28.22feature.22.29.29

I have not checked what LDC does with SIMD with default 
commandline parameters.

Cheers,
   Johan



More information about the Digitalmars-d mailing list