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: [patch, libiberty, gdb] IEEE 754 half floating-point format


Ken Werner wrote:

> include/ChangeLog:
> 
> 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
> 
> 	* gfloatformat.h (floatformat_ieee_half_big): Add declaration.
> 	(floatformat_ieee_half_little): Likewise.
> 
> libiberty/ChangeLog:
> 
> 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
> 
> 	* floatformat.c (floatformat_ieee_half_big): New variable.
> 	(floatformat_ieee_half_little): Likewise.
> 
> ChangeLog:
> 
> 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
> 
> 	* gdbtypes.h (floatformats_ieee_half): Add declaration.
> 	* gdbtypes.c (floatformats_ieee_half): New variable.
> 	* doublest.c (floatformat_from_length): Set format to
> 	gdbarch_half_format if length matches.
> 	* gdbarch.sh (half_bit): New architecture method.
> 	(half_format): Likewise.
> 	* gdbarch.h: Regenerate.
> 	* gdbarch.c: Likewise.

DJ Delorie wrote:

> The libiberty parts are OK.  At least, they shouldn't break anything,
> I have no idea if the *values* are correct.


The GDB parts are OK as well.  As far as the values go, they seem correct
to me according to the IEEE spec and compared to GCC's real.c ...

I've checked the patch in to the src and gcc repositories now.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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