diff options
Diffstat (limited to 'math/s_ctanh.c')
-rw-r--r-- | math/s_ctanh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/math/s_ctanh.c b/math/s_ctanh.c index ca4c0e296b..1347d07834 100644 --- a/math/s_ctanh.c +++ b/math/s_ctanh.c @@ -53,12 +53,11 @@ __ctanh (__complex__ double x) double sinix, cosix; double den; const int t = (int) ((DBL_MAX_EXP - 1) * M_LN2 / 2); - int icls = fpclassify (__imag__ x); /* tanh(x+iy) = (sinh(2x) + i*sin(2y))/(cosh(2x) + cos(2y)) = (sinh(x)*cosh(x) + i*sin(y)*cos(y))/(sinh(x)^2 + cos(y)^2). */ - if (__glibc_likely (icls != FP_SUBNORMAL)) + if (__glibc_likely (fabs (__imag__ x) > DBL_MIN)) { __sincos (__imag__ x, &sinix, &cosix); } |