This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: GDB/libiberty support for IBM long double


On Wed, Jan 02, 2008 at 02:11:27PM -0200, Luis Machado wrote:
> Hi,
> 
> > I wonder if we really need to use floatformat_to_double instead of
> > floatformat_to_doublest for the split_half cases.  It seems like that
> > relies unnecessarily on the host double format.  Do things work better
> > if you use floatformat_to_doublest and DOUBLEST variables, instead
> > of floatformat_to_double (likewise floatformat_from_doublest)?
> 
> The attached patch replaces the use of floatformat_to_double with
> floatformat_to_doublest, fixing the problem.
> 
> There are other uses of floatformat_to_double in the function, by i'm
> not sure if we should just replace every call of that function with the
> "doublest" version (likewise with the floatformat_from_double ->
> floatformat_from_doublest replacement).

There is one other call, for NaN and infinity.  That one should be
left alone, since we don't duplicate the necessary bits and the
precision is irrelevant.

However, could you test also replacing the two floatformat_from_double
calls in convert_doublest_to_floatformat?

-- 
Daniel Jacobowitz
CodeSourcery


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