summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1836ffe..bf841f7 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 6d7e006..4f17391 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