This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: rs6000 LDBL_MAX converts to infinity
On Mar 3, 2004, Alan Modra <amodra@bigpond.net.au> wrote:
>> == 0x1.FFFFFFFFFFFFF7FFFFFFFP1023L. Try a higher number and MIPSpro cc
>> reports an error.
> Curious. I'd have expected 0x1.FFFFFFFFFFFFF7FFFFFFFFFFFF8P1023L
This seems to imply to me that rounding is actually the right thing to
do. That's why there's this 7 in the middle of the string of Fs: to
prevent the rounding to 53 bits from overflowing.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}