diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-04-12 04:17:47 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-04-12 04:17:47 +0000 |
commit | 9e113ecd8031b17c2d9be312cf9cb0b59e8d471a (patch) | |
tree | ed3aa8804074df5f0e432600dfc64c465d0b23bc | |
parent | 3b6d574e0100415b433127a089844af8ab54f02a (diff) | |
download | glibc-9e113ecd8031b17c2d9be312cf9cb0b59e8d471a.tar.gz glibc-9e113ecd8031b17c2d9be312cf9cb0b59e8d471a.tar.xz glibc-9e113ecd8031b17c2d9be312cf9cb0b59e8d471a.zip |
* sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl): glibc-2.8 cvs/glibc-2_8 cvs/fedora-glibc-20080412T0741
Also use for 32-bit.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 1836ffea8c..bf841f7b8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-04-11 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl): + Also use for 32-bit. * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use __nextafter instead of nextafter to avoid local PLT. * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept. diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h b/sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h index 6d7e006307..4f173912ed 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h @@ -72,11 +72,11 @@ __NTH (__signbit (double __x)) __extension__ union { double __d; int __i[2]; } __u = { __d: __x }; return __u.__i[0] < 0; } -# if defined __powerpc64__ && defined __LONGDOUBLE128 +# ifdef __LONGDOUBLE128 __MATH_INLINE int __NTH (__signbitl (long double __x)) { - __extension__ union { long double __d; long int __i[2]; } __u = { __d: __x }; + __extension__ union { long double __d; int __i[4]; } __u = { __d: __x }; return __u.__i[0] < 0; } # endif |