dolphin-emu/dolphin — pull request #25 by Tilka (2014-02-02 12:30:37+00:00)
Title: Fix non-IEEE mode

This is done by avoiding CVTSS2SD/CVTSD2SS for float conversions and instead using FLD+FSTP followed by some instructions for resetting the QNaN bit to its original value.

I haven't done any performance testing yet of the QNaN reset code yet. According to Intel, mixing float and integer SSE instructions carries some performance penalty.

Thanks to @phire for pointing out both pitfalls.