m68k: use signbit macro
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 13 Mar 2010 17:14:35 +0000 (18:14 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 13 Mar 2010 17:15:31 +0000 (18:15 +0100)
ChangeLog.m68k
sysdeps/m68k/m680x0/fpu/s_ccos.c
sysdeps/m68k/m680x0/fpu/s_ccosh.c

index 9fafc08..c7d068e 100644 (file)
@@ -1,5 +1,8 @@
 2010-03-13  Andreas Schwab  <schwab@linux-m68k.org>
 
+       * 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.
 
index d302d3d..8239159 100644 (file)
@@ -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 <schwab@issan.informatik.uni-dortmund.de>.
 
@@ -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);
index 1698881..d272e98 100644 (file)
@@ -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 <schwab@issan.informatik.uni-dortmund.de>.
 
@@ -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);