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 /math/s_cprojf.c | |
parent | 0716c4fc9fff70870e28f84d18ddbce1db162101 (diff) | |
download | glibc-c980f2f4fe0f5d301f706017a1f7e4e942193ec0.tar glibc-c980f2f4fe0f5d301f706017a1f7e4e942193ec0.tar.gz glibc-c980f2f4fe0f5d301f706017a1f7e4e942193ec0.tar.bz2 glibc-c980f2f4fe0f5d301f706017a1f7e4e942193ec0.zip |
Fix cproj handling of (finite, NaN) arguments (bug 15531).
Diffstat (limited to 'math/s_cprojf.c')
-rw-r--r-- | math/s_cprojf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/math/s_cprojf.c b/math/s_cprojf.c index 188bbe3beb..e4dbc181bd 100644 --- a/math/s_cprojf.c +++ b/math/s_cprojf.c @@ -24,9 +24,7 @@ __complex__ float __cprojf (__complex__ float x) { - if (isnan (__real__ x) && isnan (__imag__ x)) - return x; - else if (!isfinite (__real__ x) || !isfinite (__imag__ x)) + if (__isinf_nsf (__real__ x) || __isinf_nsf (__imag__ x)) { __complex__ float res; |