This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: real.c implementation
- From: dewar at gnat dot com (Robert Dewar)
- To: aph at redhat dot com, dewar at gnat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 22 Oct 2002 07:01:37 -0400 (EDT)
- Subject: Re: real.c implementation
> This is the part I don't understand. On a machine with IEEE format
> arithmetic all langauges benefit if floating-point literals are
> generated precisely, even if the language specification does not
> require it.
First, "generated precisely" is not well defined (and as I have pointed out
in a previous message, for example, Ada and Java have different requirements
for what precisely means).
Second, requiring exact rounding through the entire range has very severe
implications. Be sure that is what you want before you require it. This
for instance goes far beyond the requirements of IEEE 754.