diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-08-20 19:41:15 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-08-20 19:41:15 +0000 |
commit | c980f2f4fe0f5d301f706017a1f7e4e942193ec0 (patch) | |
tree | a8a3c9c159747a9eed2acaa20a65e19d8b23a5c4 /sysdeps/ieee754/ldbl-128ibm/s_cprojl.c | |
parent | 0716c4fc9fff70870e28f84d18ddbce1db162101 (diff) | |
download | glibc-c980f2f4fe0f5d301f706017a1f7e4e942193ec0.zip glibc-c980f2f4fe0f5d301f706017a1f7e4e942193ec0.tar.gz glibc-c980f2f4fe0f5d301f706017a1f7e4e942193ec0.tar.bz2 |
Fix cproj handling of (finite, NaN) arguments (bug 15531).
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/s_cprojl.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/s_cprojl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c b/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c index 3b4af54..a344e92 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c @@ -24,9 +24,7 @@ __complex__ long double __cprojl (__complex__ long double x) { - if (isnan (__real__ x) && isnan (__imag__ x)) - return x; - else if (!isfinite (__real__ x) || !isfinite (__imag__ x)) + if (__isinf_nsl (__real__ x) || __isinf_nsl (__imag__ x)) { __complex__ long double res; |