summaryrefslogtreecommitdiff
path: root/packages/glibc/2.17/0020-glibc-rh731833-libm-3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/glibc/2.17/0020-glibc-rh731833-libm-3.patch')
-rw-r--r--packages/glibc/2.17/0020-glibc-rh731833-libm-3.patch46
1 files changed, 17 insertions, 29 deletions
diff --git a/packages/glibc/2.17/0020-glibc-rh731833-libm-3.patch b/packages/glibc/2.17/0020-glibc-rh731833-libm-3.patch
index 89fe7a2..15e6010 100644
--- a/packages/glibc/2.17/0020-glibc-rh731833-libm-3.patch
+++ b/packages/glibc/2.17/0020-glibc-rh731833-libm-3.patch
@@ -7,18 +7,16 @@ This patch removes redudant definition from PowerPC specific
math_ldbl, using the definitions from ieee754 math_ldbl.h.
(backported from commit edf66e57fc2bac083ecc9756a5fe47f9041ed3bb)
---
- sysdeps/ieee754/ldbl-128ibm/math_ldbl.h | 10 +-
- sysdeps/powerpc/Implies | 1 +
- sysdeps/powerpc/fpu/math_ldbl.h | 171 ++------------------------------
- sysdeps/unix/sysv/linux/powerpc/Implies | 4 -
- 5 files changed, 34 insertions(+), 168 deletions(-)
+ sysdeps/ieee754/ldbl-128ibm/math_ldbl.h | 10 +
+ sysdeps/powerpc/Implies | 1
+ sysdeps/powerpc/fpu/math_ldbl.h | 171 +-------------------------------
+ sysdeps/unix/sysv/linux/powerpc/Implies | 4
+ 4 files changed, 18 insertions(+), 168 deletions(-)
delete mode 100644 sysdeps/unix/sysv/linux/powerpc/Implies
-diff --git glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
-index be9ac71..1cce1fc 100644
---- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
-+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
-@@ -125,7 +125,7 @@ ldbl_insert_mantissa (int sign, int exp, int64_t hi64, u_int64_t lo64)
+--- a/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
++++ b/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
+@@ -125,7 +125,7 @@
/* Handy utility functions to pack/unpack/cononicalize and find the nearbyint
of long double implemented as double double. */
static inline long double
@@ -27,7 +25,7 @@ index be9ac71..1cce1fc 100644
{
union ibm_extended_long_double u;
u.dd[0] = a;
-@@ -134,7 +134,7 @@ ldbl_pack (double a, double aa)
+@@ -134,7 +134,7 @@
}
static inline void
@@ -36,7 +34,7 @@ index be9ac71..1cce1fc 100644
{
union ibm_extended_long_double u;
u.d = l;
-@@ -142,6 +142,12 @@ ldbl_unpack (long double l, double *a, double *aa)
+@@ -142,6 +142,12 @@
*aa = u.dd[1];
}
@@ -49,20 +47,16 @@ index be9ac71..1cce1fc 100644
/* Convert a finite long double to canonical form.
Does not handle +/-Inf properly. */
-diff --git glibc-2.17-c758a686/sysdeps/powerpc/Implies glibc-2.17-c758a686/sysdeps/powerpc/Implies
-index 7ccf9a7..78dba95 100644
---- glibc-2.17-c758a686/sysdeps/powerpc/Implies
-+++ glibc-2.17-c758a686/sysdeps/powerpc/Implies
+--- a/sysdeps/powerpc/Implies
++++ b/sysdeps/powerpc/Implies
@@ -1,4 +1,5 @@
# On PowerPC we use the IBM extended long double format.
ieee754/ldbl-128ibm
+ieee754/ldbl-opt
ieee754/dbl-64
ieee754/flt-32
-diff --git glibc-2.17-c758a686/sysdeps/powerpc/fpu/math_ldbl.h glibc-2.17-c758a686/sysdeps/powerpc/fpu/math_ldbl.h
-index 6cd6d0b..36378c0 100644
---- glibc-2.17-c758a686/sysdeps/powerpc/fpu/math_ldbl.h
-+++ glibc-2.17-c758a686/sysdeps/powerpc/fpu/math_ldbl.h
+--- a/sysdeps/powerpc/fpu/math_ldbl.h
++++ b/sysdeps/powerpc/fpu/math_ldbl.h
@@ -2,132 +2,12 @@
#error "Never use <math_ldbl.h> directly; include <math_private.h> instead."
#endif
@@ -201,7 +195,7 @@ index 6cd6d0b..36378c0 100644
{
register long double x __asm__ ("fr1");
register double xh __asm__ ("fr1");
-@@ -139,7 +19,7 @@ ldbl_pack (double a, double aa)
+@@ -139,7 +19,7 @@
}
static inline void
@@ -210,7 +204,7 @@ index 6cd6d0b..36378c0 100644
{
register long double x __asm__ ("fr1");
register double xh __asm__ ("fr1");
-@@ -150,40 +30,7 @@ ldbl_unpack (long double l, double *a, double *aa)
+@@ -150,40 +30,7 @@
*aa = xl;
}
@@ -254,16 +248,10 @@ index 6cd6d0b..36378c0 100644
- return a;
-}
+#include <sysdeps/ieee754/ldbl-128ibm/math_ldbl.h>
-diff --git glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/Implies glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/Implies
-deleted file mode 100644
-index ff27cdb..0000000
---- glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/Implies
+--- a/sysdeps/unix/sysv/linux/powerpc/Implies
+++ /dev/null
@@ -1,4 +0,0 @@
-# Make sure these routines come before ldbl-opt.
-ieee754/ldbl-128ibm
-# These supply the ABI compatibility for when long double was double.
-ieee754/ldbl-opt
---
-1.7.11.7
-