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 long double extenddftf patch


On Thu, Jan 08, 2004 at 02:41:55PM -0800, Geoffrey Keating wrote:
> darwin-ldouble.c.  Unfortunately, real.c and darwin-ldouble.c are also
> inconsistent with each other, so I am not sure what to do.  For
> instance, real.c represents -Inf as (-Inf, -Inf); darwin-ldouble.c
> represents it as (-Inf, -0.0); and extenddftf now represents it as
> (-Inf, +0.0).  One of those is probably right, but which one?

I believe (-Inf, -0.0) is the canonical one.  The general rule in
the extended double "a + aa", is that of all possible choices of
doubles for "a" and "aa", that "aa" should be the double nearest 0.0.
In the case where "aa" == 0.0, it should have the same sign as "a".

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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