Hacker News new | ask | show | jobs
by amluto 2238 days 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.)

2 comments

> 80-bit precision is actively harmful

How comes? Unexpected clipping when converting back and forth to 64bits?

Exactly. The conversations happen at unexpected and unpredictable times depending on when the compiler needs to spill registers, which has surprising effects.
You're right - thanks for the correction!