aboutsummaryrefslogtreecommitdiff
path: root/math/s_cexpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_cexpf.c')
-rw-r--r--math/s_cexpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/s_cexpf.c b/math/s_cexpf.c
index fac1a17e77..35ff36ceca 100644
--- a/math/s_cexpf.c
+++ b/math/s_cexpf.c
@@ -39,7 +39,7 @@ __cexpf (__complex__ float x)
const int t = (int) ((FLT_MAX_EXP - 1) * M_LN2);
float sinix, cosix;
- if (__glibc_likely (icls != FP_SUBNORMAL))
+ if (__glibc_likely (fabsf (__imag__ x) > FLT_MIN))
{
__sincosf (__imag__ x, &sinix, &cosix);
}
@@ -115,7 +115,7 @@ __cexpf (__complex__ float x)
{
float sinix, cosix;
- if (__glibc_likely (icls != FP_SUBNORMAL))
+ if (__glibc_likely (fabsf (__imag__ x) > FLT_MIN))
{
__sincosf (__imag__ x, &sinix, &cosix);
}