aboutsummaryrefslogtreecommitdiff
path: root/math/s_clog10l.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_clog10l.c')
-rw-r--r--math/s_clog10l.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/math/s_clog10l.c b/math/s_clog10l.c
index 8481e45d4e..86ec512663 100644
--- a/math/s_clog10l.c
+++ b/math/s_clog10l.c
@@ -78,15 +78,8 @@ __clog10l (__complex__ long double x)
if (absx == 1.0L && scale == 0)
{
- long double absy2 = absy * absy;
- if (absy2 <= LDBL_MIN * 2.0L * M_LN10l)
- {
- long double force_underflow = absy2 * absy2;
- __real__ result = absy2 * (M_LOG10El / 2.0);
- math_force_eval (force_underflow);
- }
- else
- __real__ result = __log1pl (absy2) * (M_LOG10El / 2.0L);
+ __real__ result = __log1pl (absy * absy) * (M_LOG10El / 2.0L);
+ math_check_force_underflow_nonneg (__real__ result);
}
else if (absx > 1.0L && absx < 2.0L && absy < 1.0L && scale == 0)
{