From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,4a212ac2372bd10e X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,4a212ac2372bd10e X-Google-Attributes: gid1164f8,public From: phr@netcom.com (Paul Rubin) Subject: Re: 21164PC demonstration/talk at Microprocessor Forum Date: 1996/11/11 Message-ID: #1/1 X-Deja-AN: 195811190 sender: phr@netcom7.netcom.com references: <3283D700.47EB@OntheNet.com.au> <32871515.200912006@nntp.ne.highway1.com> organization: NETCOM On-line Communication Services (408 261-4700 guest) newsgroups: comp.arch,comp.sys.dec In article <32871515.200912006@nntp.ne.highway1.com>, John S. Yates, Jr. wrote: >>if you want something tricky, lets talk about exact emulation of 80-bit >>floating-point, complete with exceptions. Ugh...) > >Good point Zalman. FX!32 does not implement 80 bit floating point >arithmetic. (Neither do any of the other x86 emulators.) The biggest >problem that this introduces is emulating precision related exceptions >(denormal input, overflow, underflow, and especially imprecise). FX!32 >does emulate other fp exceptions correctly: invalid operation, divide >by zero, stack overflow and stack underflow. If FX!32 doesn't do 80 bit arithmetic correctly, it is broken. If the other emulators also don't do it correctly, they are also broken. Not only would programs doing 80 bit arithmetic stop working, but programs doing 32 or 64 bit arithmetic may start getting different results because of rounding error happening differently. >It would seem, especially in realm of Win32 applications, that users >are hard put to rely on the properties of 80 bit arithmetic: Microsoft >has made it impossible to get at them from any of their higher level >lanuages (declaring a "long double" in C/C++ no longer provide 80 bit >objects, only 64 bits!). In GNU C, "long double" gives you an 80 bit float. You can also use assembly language. I even know of applications that use 80 bit floating point operations as a fast way to do -integer- arithmetic (because floating point arithmetic on the Pentium is so much faster than integer). Of course, emulating the 80 bit floating point on 64 bit hardware would totally clobber the speed advantage, but at least the software would still work. Why doesn't the Alpha provide an extended precision mode? I think the RS/6000 can even do 128 bit floating point.