aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro-toolchain/recipes-core/eglibc/eglibc-linaro-2.19/ppce6500-32b_slow_ieee754_sqrt.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-02-03 20:05:14 -0800
committerKoen Kooi <koen.kooi@linaro.org>2015-02-04 09:38:11 +0100
commit06008235ca752fea678953e85adaa29a491d246b (patch)
tree241faa816d67122810a92f0aee4235db24f6cb49 /meta-linaro-toolchain/recipes-core/eglibc/eglibc-linaro-2.19/ppce6500-32b_slow_ieee754_sqrt.patch
parentbc63e777ad2748b8bfa7fa70ffd74700fa21a567 (diff)
eglibc-linaro: Sync patches from OE-Core
These patches are needed for meta-linaro to use gold and sstate Change-Id: I9cb885019b72638b8f63afac34a7c5b374a95e43 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Diffstat (limited to 'meta-linaro-toolchain/recipes-core/eglibc/eglibc-linaro-2.19/ppce6500-32b_slow_ieee754_sqrt.patch')
-rw-r--r--meta-linaro-toolchain/recipes-core/eglibc/eglibc-linaro-2.19/ppce6500-32b_slow_ieee754_sqrt.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-linaro-toolchain/recipes-core/eglibc/eglibc-linaro-2.19/ppce6500-32b_slow_ieee754_sqrt.patch b/meta-linaro-toolchain/recipes-core/eglibc/eglibc-linaro-2.19/ppce6500-32b_slow_ieee754_sqrt.patch
new file mode 100644
index 00000000..4c6c1070
--- /dev/null
+++ b/meta-linaro-toolchain/recipes-core/eglibc/eglibc-linaro-2.19/ppce6500-32b_slow_ieee754_sqrt.patch
@@ -0,0 +1,47 @@
+ __ieee754_sqrt{,f} are now inline functions and call out __slow versions
+
+
+Signed-off-by: chunrong guo <B40290@freescale.com>
+Upstream-Status: Pending
+
+diff -rNu libc-orig/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c libc/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c
+--- libc-orig/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c 2014-04-08 04:39:58.487229887 -0500
++++ libc/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c 2014-04-08 04:40:52.643069198 -0500
+@@ -41,10 +41,10 @@
+
+ #ifdef __STDC__
+ double
+-__ieee754_sqrt (double b)
++__slow_ieee754_sqrt (double b)
+ #else
+ double
+-__ieee754_sqrt (b)
++__slow_ieee754_sqrt (b)
+ double b;
+ #endif
+ {
+@@ -83,7 +83,7 @@
+
+ /* Handle small numbers by scaling. */
+ if (__builtin_expect ((u.parts.msw & 0x7ff00000) <= 0x02000000, 0))
+- return __ieee754_sqrt (b * two108) * twom54;
++ return __slow_ieee754_sqrt (b * two108) * twom54;
+
+ #define FMADD(a_, c_, b_) \
+ ({ double __r; \
+diff -rNu libc-orig/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c libc/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c
+--- libc-orig/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c 2014-04-08 04:39:58.487229887 -0500
++++ libc/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c 2014-04-08 04:41:26.017067682 -0500
+@@ -39,10 +39,10 @@
+
+ #ifdef __STDC__
+ float
+-__ieee754_sqrtf (float b)
++__slow_ieee754_sqrtf (float b)
+ #else
+ float
+-__ieee754_sqrtf (b)
++__slow_ieee754_sqrtf (b)
+ float b;
+ #endif
+ {