5 ms·
> since x87 is gone in x86-64, so even scalar FP has to use SSE registers. No, it’s still there. What’s actually going on is that all x86-64 CPUs support SSE2
by amluto 7y ago
> since x87 is gone in x86-64, so even scalar FP has to use SSE registers.
No, it’s still there. What’s actually going on is that all x86-64 CPUs support SSE2, so there is little reason to use x87 in 64-bit code.
(You can use it for 80-bit precision. OTOH, for most purposes, 80-bit precision is actively harmful, and x87 is an incredible mess, so almost no one wants it.)
- moosedev 7y agoYou're right - thanks for the correction!
- ethelward 7y ago> 80-bit precision is actively harmful How comes? Unexpected clipping when converting back and forth to 64bits?
- amluto 7y agoExactly. The conversations happen at unexpected and unpredictable times depending on when the compiler needs to spill registers, which has surprising effects.