From c980f2f4fe0f5d301f706017a1f7e4e942193ec0 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 20 Aug 2013 19:41:15 +0000 Subject: Fix cproj handling of (finite, NaN) arguments (bug 15531). --- sysdeps/ieee754/ldbl-128ibm/s_cprojl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sysdeps/ieee754/ldbl-128ibm') diff --git a/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c b/sysdeps/ieee754/ldbl-128ibm/s_cprojl.c index 3b4af5423a..a344e9288f 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; -- cgit 1.4.1