diff --git a/ChangeLog.m68k b/ChangeLog.m68k index 9fafc08c9f..c7d068e36b 100644 --- a/ChangeLog.m68k +++ b/ChangeLog.m68k @@ -1,5 +1,8 @@ 2010-03-13 Andreas Schwab + * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Use signbit macro. + * sysdeps/m68k/m680x0/fpu/s_ccos.c: Likewise. + * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__signbit) (__signbitf, __signbitl): Always define as inline. diff --git a/sysdeps/m68k/m680x0/fpu/s_ccos.c b/sysdeps/m68k/m680x0/fpu/s_ccos.c index d302d3d86b..8239159647 100644 --- a/sysdeps/m68k/m680x0/fpu/s_ccos.c +++ b/sysdeps/m68k/m680x0/fpu/s_ccos.c @@ -1,5 +1,5 @@ /* Complex cosine function. m68k fpu version - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Schwab . @@ -48,7 +48,7 @@ s(__ccos) (__complex__ float_type x) : "f" (__real__ x)); __real__ retval = cos_rx * m81(__ieee754_cosh) (__imag__ x); if (rx_cond & __M81_COND_ZERO) - __imag__ retval = (m81(__signbit) (__imag__ x) + __imag__ retval = (signbit (__imag__ x) ? __real__ x : -__real__ x); else __imag__ retval = -sin_rx * m81(__ieee754_sinh) (__imag__ x); diff --git a/sysdeps/m68k/m680x0/fpu/s_ccosh.c b/sysdeps/m68k/m680x0/fpu/s_ccosh.c index 1698881b9f..d272e98f2a 100644 --- a/sysdeps/m68k/m680x0/fpu/s_ccosh.c +++ b/sysdeps/m68k/m680x0/fpu/s_ccosh.c @@ -1,5 +1,5 @@ /* Complex cosine hyperbole function. m68k fpu version - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Schwab . @@ -48,7 +48,7 @@ s(__ccosh) (__complex__ float_type x) : "f" (__imag__ x)); __real__ retval = cos_ix * m81(__ieee754_cosh) (__real__ x); if (ix_cond & __M81_COND_ZERO) - __imag__ retval = (m81(__signbit) (__real__ x) + __imag__ retval = (signbit (__real__ x) ? -__imag__ x : __imag__ x); else __imag__ retval = sin_ix * m81(__ieee754_sinh) (__real__ x);