This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rs6000 LDBL_MAX converts to infinity


On Mar  3, 2004, Alan Modra <amodra@bigpond.net.au> wrote:

> On Wed, Mar 03, 2004 at 12:22:37AM -0300, Alexandre Oliva wrote:

>> The fact that the incoming long double is properly rounded doesn't
>> imply the result of additional arithmetic is properly rounded,

[snip]

> Your reply doesn't really address rounding of 'v', which is what I was
> talking about in the paragraph quoted above.

Well, see, it does :-)

Even if the rounding turns out to be unnecessary, I'd still put it in
as defensive programming.

> You do have a point that I'm possibly passing encode_ieee_double
> values that would not normally be passed, but I happen to know that
> encode_ieee_double works for the range I'm interested in.  :)

Until it's changed and breaks the range you're interested in :-)

> 	* real.c (encode_ibm_extended): Handle LDBL_MAX and other large
> 	numbers.

Looks good to me.

>                 Don't round before converting low double.

I'd rather leave this out.

-- 
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}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]