dxf <dxfo…@gmail.com> writes:
>When Intel developed the 8087 it was with IEEE double-precision in mind. >There's little doubt its the reason they chose an internal representation >of 80 bits to handle at least some of IEEE's arithmetic and conversion >requirements.
Citation needed. Several things make this very unlikely: *) The recounts of the development of the 8087 and IEEE 754 I have read do not provide support for such claims. On the contrary, the idea behind the 8087 is reported to be "the best", and everything I read from Kahan about 80-bit formats is along the lines of them being being better than IEEE 754 DP format, and he deplores that they are not more widely available. E.g.: "But the Macintosh based on the 68000 gave way to the PowerPC, whose arithmetic is inferior." [1] [1] 8087: http://web.archive.org/web/20190301193516/http://www.drdobbs.com/architecture-and-design/a-conversation-with-william-kahan/184410314 BTW, this article was written by Jack Woehr, the author of JaxForth and Forth: The New Model. [2] IEEE 754: https://people.eecs.berkeley.edu/~wkahan/ieee754status/754story.html *) The 8087 project was started before IEEE 754 and launched in 1980, IEEE 754 was released in 1985. And in particular, it took at least until 1981 to decide between K-C-S (what eventually became IEEE 754) and VAX F/G FP formats [2]. *) The 8087 and none of its successors imlements the IEEE 754 double-precision operations fully. Even with the 53-bit mode for the mantissa, the longer exponent means that there are cases where the result differs from that of binary64. [That was a sore point for Java's write-once-run-anywhere promise until they started to rely on SSE2 on AMD64 processors.] *) The 80-bit format is not just an internal representation. It's exposed to software, and software makes use of it. By contrast, many FPUs tend to have three extra bits that are not exposed to the users, and which you only see indirectly. E.g., SSE2 has instructions MOVUPD, MOVUPS, and MOVDQU, which all do the same thing (take a look at the "Operation" description), but may differ in how they set up the internal representation, so if you follow a load performed with MOVUPS by a MULPD working on the loaded register, you may see a slowdown compared to using MOVUPD for the load, because the extra bits have to be generated first, before performing the actual work of the MULPD. *) Lots of other architectures target IEEE double-precision without implementing 80-bit FP, much less providing it to users. - anton