about summary refs log tree commit diff
path: root/math/s_clog10.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_clog10.c')
-rw-r--r--math/s_clog10.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/math/s_clog10.c b/math/s_clog10.c
index 79909383a0..b6a434225a 100644
--- a/math/s_clog10.c
+++ b/math/s_clog10.c
@@ -71,15 +71,8 @@ __clog10 (__complex__ double x)
 
       if (absx == 1.0 && scale == 0)
 	{
-	  double absy2 = absy * absy;
-	  if (absy2 <= DBL_MIN * 2.0 * M_LN10)
-	    {
-	      double force_underflow = absy2 * absy2;
-	      __real__ result = absy2 * (M_LOG10E / 2.0);
-	      math_force_eval (force_underflow);
-	    }
-	  else
-	    __real__ result = __log1p (absy2) * (M_LOG10E / 2.0);
+	  __real__ result = __log1p (absy * absy) * (M_LOG10E / 2.0);
+	  math_check_force_underflow_nonneg (__real__ result);
 	}
       else if (absx > 1.0 && absx < 2.0 && absy < 1.0 && scale == 0)
 	{