summaryrefslogtreecommitdiff
path: root/math/s_clogf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_clogf.c')
-rw-r--r--math/s_clogf.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/math/s_clogf.c b/math/s_clogf.c
index bae0fe60ac..ffec7ce0a4 100644
--- a/math/s_clogf.c
+++ b/math/s_clogf.c
@@ -65,15 +65,8 @@ __clogf (__complex__ float x)
if (absx == 1.0f && scale == 0)
{
- float absy2 = absy * absy;
- if (absy2 <= FLT_MIN * 2.0f)
- {
- float force_underflow = absy2 * absy2;
- __real__ result = absy2 / 2.0f;
- math_force_eval (force_underflow);
- }
- else
- __real__ result = __log1pf (absy2) / 2.0f;
+ __real__ result = __log1pf (absy * absy) / 2.0f;
+ math_check_force_underflow_nonneg (__real__ result);
}
else if (absx > 1.0f && absx < 2.0f && absy < 1.0f && scale == 0)
{