3 ms·
For a long time on the most popular platform, Intel 32-bit, double wasn't IEEE754 64-bit float by default. It was 80-bit internally, causing weird discrepancies
by pjc50 8y ago
For a long time on the most popular platform, Intel 32-bit, double wasn't IEEE754 64-bit float by default. It was 80-bit internally, causing weird discrepancies. A description: https://stackoverflow.com/questions/3206101/extended-80-bit-double-floating-point-in-x87-not-sse2-we-dont-miss-it https://stackoverflow.com/questions/3206101/extended-80-bit-...
(Entertainingly, all this template machinery doesn't seem to detect this issue, making it a bit of a waste of time)
- shaklee3 8y agoPretty sure that's still the case, right?
- simonbyrne 8y agoNot generally: most compilers make use of the SSE instruction set which doesn't have extended precision. Occasionally old versions of gcc on 32-bit machines will still use the old x87 instructions (which do have extended precision), but these are becoming increasingly rare in the wild.