]> sourceware.org Git - glibc.git/commit
PowerPC floating point little-endian [1 of 15]
authorAlan Modra <amodra@gmail.com>
Sat, 17 Aug 2013 08:51:58 +0000 (18:21 +0930)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 15 Nov 2013 17:20:33 +0000 (11:20 -0600)
commit1157aba3b996ce427cc4099d0572dcc2b630fb76
tree8be5ecad70a92ce9bc5fce5a203ef7700c4883b3
parent4f36342de3e83319bdf70e4c0442a5d0df33334f
PowerPC floating point little-endian [1 of 15]
http://sourceware.org/ml/libc-alpha/2013-08/msg00081.html

This is the first of a series of patches to ban ieee854_long_double
and the ieee854_long_double macros when using IBM long double.  union
ieee854_long_double just isn't correct for IBM long double, especially
when little-endian, and pretending it is OK has allowed a number of
bugs to remain undetected in sysdeps/ieee754/ldbl-128ibm/.

This changes the few places in generic code that use it.

* stdio-common/printf_size.c (__printf_size): Don't use
union ieee854_long_double in fpnum union.
* stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
signbit macro to retrieve sign from long double.
* stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
retrieve sign from long double.
* sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
* sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
* sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
* sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
* math/test-misc.c (main): Don't use union ieee854_long_double.
ports/
* sysdeps/ia64/fpu/printf_fphex.c: Adjust for fpnum change.
ChangeLog
math/test-misc.c
ports/ChangeLog
ports/sysdeps/ia64/fpu/printf_fphex.c
stdio-common/printf_fp.c
stdio-common/printf_fphex.c
stdio-common/printf_size.c
sysdeps/ieee754/ldbl-128/printf_fphex.c
sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
sysdeps/ieee754/ldbl-96/printf_fphex.c
sysdeps/x86_64/fpu/printf_fphex.c
This page took 0.047599 seconds and 5 git commands to generate.