mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
m68k: avoid invalid exception for ccosh(NaN+iNaN)
This commit is contained in:
parent
ccc074aa35
commit
a9e6c76aae
@ -1,3 +1,8 @@
|
||||
2012-02-25 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* sysdeps/m68k/m680x0/fpu/s_ccosh.c: Avoid raising invalid
|
||||
exception for NaN+iNaN.
|
||||
|
||||
2012-02-24 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update ULPs.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Complex cosine hyperbole function. m68k fpu version
|
||||
Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997, 1999, 2010, 2012 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
|
||||
|
||||
@ -67,7 +67,7 @@ s(__ccosh) (__complex__ float_type x)
|
||||
if (rx_cond & __M81_COND_INF)
|
||||
__real__ retval = s(fabs) (__real__ x);
|
||||
else
|
||||
__real__ retval = 0.0/0.0;
|
||||
__real__ retval = s(__nan) ("");
|
||||
__imag__ retval = __imag__ x - __imag__ x;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user