summaryrefslogtreecommitdiff
path: root/math/s_ctanhf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_ctanhf.c')
-rw-r--r--math/s_ctanhf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/math/s_ctanhf.c b/math/s_ctanhf.c
index 14e1371ef5..9d15c3ef0c 100644
--- a/math/s_ctanhf.c
+++ b/math/s_ctanhf.c
@@ -110,6 +110,16 @@ __ctanhf (__complex__ float x)
__real__ res = sinhrx * coshrx / den;
__imag__ res = sinix * cosix / den;
}
+ if (fabsf (__real__ res) < FLT_MIN)
+ {
+ float force_underflow = __real__ res * __real__ res;
+ math_force_eval (force_underflow);
+ }
+ if (fabsf (__imag__ res) < FLT_MIN)
+ {
+ float force_underflow = __imag__ res * __imag__ res;
+ math_force_eval (force_underflow);
+ }
}
return res;