SIMD on Windows

Benjamin Thaut code at benjamin-thaut.de
Sat Jun 22 04:45:00 PDT 2013


Am 22.06.2013 00:43, schrieb Jonathan Dunlap:
> In D 2.063.2 on Windows 7:
> Error: SIMD vector types not supported on this platform
>
> Should I file a bug for this or is this currently on a roadmap? I'm
> SUPER excited to get into SIMD development with D. :D

In its current state you don't want to be using SIMD with dmd because 
the generated assembly will be significantly slower then if you just use 
the default FPU math. If you need simd you will need to write inline 
assembler. This will then also work on 32 bit windows. But you have to 
use unaligned loads / stores because the compiler will not garantuee 
alignment (on 32 bit).

More details on the underperforming generated assembly can be found here:
http://d.puremagic.com/issues/show_bug.cgi?id=10226

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list