|
|
29e444 |
Combination of the following two commits:
|
|
|
29e444 |
|
|
|
29e444 |
From 45045c44fabde9152ab1a0b4ed06419a3621f535 Mon Sep 17 00:00:00 2001
|
|
|
29e444 |
From: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
|
|
29e444 |
Date: Thu, 21 Mar 2013 14:15:45 -0300
|
|
|
29e444 |
Subject: [PATCH 20/42] PowerPC: fix sqrtl ABI issue
|
|
|
29e444 |
|
|
|
29e444 |
This patch fixes a sqrtl ABI issue when building for powerpc64.
|
|
|
29e444 |
(cherry picked from commit b5784d95bb94eda59b08aca735406908e209f638)
|
|
|
29e444 |
|
|
|
29e444 |
From dad835a11f370afd2dae4bac554fa64fac5a8c6e Mon Sep 17 00:00:00 2001
|
|
|
29e444 |
From: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
|
|
29e444 |
Date: Tue, 26 Mar 2013 10:01:57 -0300
|
|
|
29e444 |
Subject: [PATCH 21/42] PowerPC: fix libm ABI issue for llroundl (cherry
|
|
|
29e444 |
picked from commit
|
|
|
29e444 |
fce14d4e9c6e08ad8c825fe88d8cbdac5c739565)
|
|
|
29e444 |
|
|
|
29e444 |
diff -pruN glibc-2.17-c758a686/sysdeps/powerpc/fpu/s_llround.c glibc-2.17-c758a686.new/sysdeps/powerpc/fpu/s_llround.c
|
|
|
29e444 |
--- glibc-2.17-c758a686/sysdeps/powerpc/fpu/s_llround.c 2012-12-25 08:32:13.000000000 +0530
|
|
|
29e444 |
+++ glibc-2.17-c758a686.new/sysdeps/powerpc/fpu/s_llround.c 2013-08-06 17:45:56.719534470 +0530
|
|
|
29e444 |
@@ -17,6 +17,7 @@
|
|
|
29e444 |
<http://www.gnu.org/licenses/>. */
|
|
|
29e444 |
|
|
|
29e444 |
#include <math.h>
|
|
|
29e444 |
+#include <math_ldbl_opt.h>
|
|
|
29e444 |
|
|
|
29e444 |
/* I think that what this routine is supposed to do is round a value
|
|
|
29e444 |
to the nearest integer, with values exactly on the boundary rounded
|
|
|
29e444 |
@@ -47,3 +48,6 @@ weak_alias (__llround, llround)
|
|
|
29e444 |
strong_alias (__llround, __llroundl)
|
|
|
29e444 |
weak_alias (__llround, llroundl)
|
|
|
29e444 |
#endif
|
|
|
29e444 |
+#if LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)
|
|
|
29e444 |
+compat_symbol (libm, __llround, llroundl, GLIBC_2_1);
|
|
|
29e444 |
+#endif
|
|
|
29e444 |
diff -pruN glibc-2.17-c758a686/sysdeps/powerpc/fpu/w_sqrt.c glibc-2.17-c758a686.new/sysdeps/powerpc/fpu/w_sqrt.c
|
|
|
29e444 |
--- glibc-2.17-c758a686/sysdeps/powerpc/fpu/w_sqrt.c 2012-12-25 08:32:13.000000000 +0530
|
|
|
29e444 |
+++ glibc-2.17-c758a686.new/sysdeps/powerpc/fpu/w_sqrt.c 2013-08-06 17:45:53.459534613 +0530
|
|
|
29e444 |
@@ -19,6 +19,7 @@
|
|
|
29e444 |
#include <math.h>
|
|
|
29e444 |
#include <math_private.h>
|
|
|
29e444 |
#include <fenv_libc.h>
|
|
|
29e444 |
+#include <math_ldbl_opt.h>
|
|
|
29e444 |
|
|
|
29e444 |
double
|
|
|
29e444 |
__sqrt (double x) /* wrapper sqrt */
|
|
|
29e444 |
@@ -42,3 +43,6 @@ weak_alias (__sqrt, sqrt)
|
|
|
29e444 |
#ifdef NO_LONG_DOUBLE
|
|
|
29e444 |
strong_alias (__sqrt, __sqrtl) weak_alias (__sqrt, sqrtl)
|
|
|
29e444 |
#endif
|
|
|
29e444 |
+#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
|
|
|
29e444 |
+compat_symbol (libm, __sqrt, sqrtl, GLIBC_2_0);
|
|
|
29e444 |
+#endif
|