Re: floating point

David McQuillan <dmcq@fano.demon.co.uk>
13 Oct 1998 02:17:06 -0400

          From comp.compilers

Related articles
Re: inlining + optimization = nuisance bugs luddy@concmp.com (Luddy Harrison) (1998-09-29)
Re: floating point, was inlining + optimization = nuisance bugs chase@world.std.com (David Chase) (1998-10-04)
Re: floating point will@ccs.neu.edu (William D Clinger) (1998-10-05)
Re: floating point comments@cygnus-software.com (Bruce Dawson) (1998-10-07)
Re: floating point will@ccs.neu.edu (William D Clinger) (1998-10-10)
Re: floating point dmcq@fano.demon.co.uk (David McQuillan) (1998-10-13)
Re: floating point darcy@CS.Berkeley.EDU (Joseph D. Darcy) (1998-10-19)
Re: floating point darcy@usul.CS.Berkeley.EDU (1998-10-24)
Re: floating point comments@cygnus-software.com (Bruce Dawson) (1998-11-01)
Re: floating point comments@cygnus-software.com (Bruce Dawson) (1998-11-01)
Re: floating point darcy@usul.CS.Berkeley.EDU (1998-11-06)
Re: floating point darcy@CS.Berkeley.EDU (Joseph D. Darcy) (1998-11-06)
[5 later articles]
| List of all articles for this month |
From: David McQuillan <dmcq@fano.demon.co.uk>
Newsgroups: comp.compilers
Date: 13 Oct 1998 02:17:06 -0400
Organization: Home
References: 98-09-164 98-10-018 98-10-040 98-10-056
Keywords: arithmetic

Bruce Dawson <comments@cygnus-software.com> wrote:
> 2) Those who want predictable double precision results aren't happy
> because the results they need are impossible to get all the time.
> Although, with rounding set to double precision they probably do get
> them 99.999% of the time - any other guesses?


If you store every intermediate result to catch out of range exponents
then setting the default precision to double does work okay - except
for denormalised numbers where you still get double rounding. And you
don't have to set the precision in single precision before doing the
operation and storing to get it to work okay - even when dividing or
getting square roots. Storing and reloading does of course crucify
performance but the alternative is using software emulation.


> In short, if you want to design an FPU that has an ultra-fast or
> ultra-precise mode you have to make sure it can be turned off
> completely, for those who want predictability. And, you have to make
> sure that turning it off is trivial - forcing compiler writers to do
> anything more than set a bit is unacceptable - they won't do it.


Completely agree. Intel should fix their FPU, I can't see why they
haven't done so long ago as the changes would be pretty trivial
in hardware terms even if they kept a heritage mode.
--
David McQuillan


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.