diff options
Diffstat (limited to 'sysdeps/powerpc')
6 files changed, 10 insertions, 6 deletions
diff --git a/sysdeps/powerpc/power5+/fpu/s_modf.c b/sysdeps/powerpc/power5+/fpu/s_modf.c index 20c828c778..b8ff8dbdb3 100644 --- a/sysdeps/powerpc/power5+/fpu/s_modf.c +++ b/sysdeps/powerpc/power5+/fpu/s_modf.c @@ -26,7 +26,7 @@ __modf (double x, double *iptr) if (__builtin_isinf (x)) { *iptr = x; - return __copysign (0.0, x); + return copysign (0.0, x); } else if (__builtin_isnan (x)) { @@ -37,12 +37,12 @@ __modf (double x, double *iptr) if (x >= 0.0) { *iptr = floor (x); - return __copysign (x - *iptr, x); + return copysign (x - *iptr, x); } else { *iptr = ceil (x); - return __copysign (x - *iptr, x); + return copysign (x - *iptr, x); } } libm_alias_double (__modf, modf) diff --git a/sysdeps/powerpc/power5+/fpu/s_modff.c b/sysdeps/powerpc/power5+/fpu/s_modff.c index 807bfe1e03..9f11116691 100644 --- a/sysdeps/powerpc/power5+/fpu/s_modff.c +++ b/sysdeps/powerpc/power5+/fpu/s_modff.c @@ -25,7 +25,7 @@ __modff (float x, float *iptr) if (__builtin_isinff (x)) { *iptr = x; - return __copysignf (0.0, x); + return copysignf (0.0, x); } else if (__builtin_isnanf (x)) { @@ -36,12 +36,12 @@ __modff (float x, float *iptr) if (x >= 0.0) { *iptr = floorf (x); - return __copysignf (x - *iptr, x); + return copysignf (x - *iptr, x); } else { *iptr = ceilf (x); - return __copysignf (x - *iptr, x); + return copysignf (x - *iptr, x); } } libm_alias_float (__modf, modf) diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c index 86df7d6bc2..f2a6f9b23b 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT /* Redefine copysign so that the compiler won't complain about the type mismatch with the IFUNC selector in strong_alias below. */ #undef __copysign diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c index d2900b3287..6dd869bfcd 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT #include <math.h> #include <shlib-compat.h> #include "init-arch.h" diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c index 74ce097397..9cb5e39c3c 100644 --- a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c +++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT /* Redefine copysign so that the compiler won't complain about the type mismatch with the IFUNC selector in strong_alias below. */ #undef __copysign diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c index 377a3f814c..c76c3f6877 100644 --- a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c +++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT #include <math.h> #include <shlib-compat.h> #include "init-arch.h" |