about summary refs log tree commit diff
path: root/math/s_cexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_cexp.c')
-rw-r--r--math/s_cexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/s_cexp.c b/math/s_cexp.c
index 9116e2b9fe..06c5b63c7a 100644
--- a/math/s_cexp.c
+++ b/math/s_cexp.c
@@ -39,7 +39,7 @@ __cexp (__complex__ double x)
 	  const int t = (int) ((DBL_MAX_EXP - 1) * M_LN2);
 	  double sinix, cosix;
 
-	  if (__glibc_likely (icls != FP_SUBNORMAL))
+	  if (__glibc_likely (fabs (__imag__ x) > DBL_MIN))
 	    {
 	      __sincos (__imag__ x, &sinix, &cosix);
 	    }
@@ -115,7 +115,7 @@ __cexp (__complex__ double x)
 	    {
 	      double sinix, cosix;
 
-	      if (__glibc_likely (icls != FP_SUBNORMAL))
+	      if (__glibc_likely (fabs (__imag__ x) > DBL_MIN))
 		{
 		  __sincos (__imag__ x, &sinix, &cosix);
 		}