about summary refs log tree commit diff
path: root/math/s_cexpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_cexpl.c')
-rw-r--r--math/s_cexpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/s_cexpl.c b/math/s_cexpl.c
index 9309b1f0f2..e2e703f8fd 100644
--- a/math/s_cexpl.c
+++ b/math/s_cexpl.c
@@ -39,7 +39,7 @@ __cexpl (__complex__ long double x)
 	  const int t = (int) ((LDBL_MAX_EXP - 1) * M_LN2l);
 	  long double sinix, cosix;
 
-	  if (__glibc_likely (icls != FP_SUBNORMAL))
+	  if (__glibc_likely (fabsl (__imag__ x) > LDBL_MIN))
 	    {
 	      __sincosl (__imag__ x, &sinix, &cosix);
 	    }
@@ -115,7 +115,7 @@ __cexpl (__complex__ long double x)
 	    {
 	      long double sinix, cosix;
 
-	      if (__glibc_likely (icls != FP_SUBNORMAL))
+	      if (__glibc_likely (fabsl (__imag__ x) > LDBL_MIN))
 	        {
 		  __sincosl (__imag__ x, &sinix, &cosix);
 	        }