[Issue 15873] In order to implement std.simd, compile time info about CPU specifics is needed

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 4 12:53:40 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15873

ponce <aliloko at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aliloko at gmail.com

--- Comment #5 from ponce <aliloko at gmail.com> ---
Could DMD also generate SSE code for 32-bit targets (easily)? SSE2 is very
common.

I see two main advantages:

- it can also avoid some divergence in results between 32-bit and 64-bit
related to the unexpected higher precision of FPU operations. Using the FPU you
might think that floats are sufficient for one task when they aren't, because
they were promoted to 80-bit float internally.

- avoiding denormals. It is a recurring concern in audio code though not that
bad.

MSVC generates SSE2 in 32-bit by default I think.

--


More information about the Digitalmars-d-bugs mailing list