1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Fix cproj handling of (finite, NaN) arguments (bug 15531).

This commit is contained in:
Joseph Myers
2013-08-20 19:41:15 +00:00
parent 0716c4fc9f
commit c980f2f4fe
7 changed files with 53 additions and 13 deletions

View File

@ -24,9 +24,7 @@
__complex__ double
__cproj (__complex__ double x)
{
if (isnan (__real__ x) && isnan (__imag__ x))
return x;
else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
if (__isinf_ns (__real__ x) || __isinf_ns (__imag__ x))
{
__complex__ double res;