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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/s_clog10.c b/math/s_clog10.c
index b6a434225a..d8f52af432 100644
--- a/math/s_clog10.c
+++ b/math/s_clog10.c
@@ -82,14 +82,17 @@ __clog10 (__complex__ double x)
 	  __real__ result = __log1p (d2m1) * (M_LOG10E / 2.0);
 	}
       else if (absx < 1.0
-	       && absx >= 0.75
+	       && absx >= 0.5
 	       && absy < DBL_EPSILON / 2.0
 	       && scale == 0)
 	{
 	  double d2m1 = (absx - 1.0) * (absx + 1.0);
 	  __real__ result = __log1p (d2m1) * (M_LOG10E / 2.0);
 	}
-      else if (absx < 1.0 && (absx >= 0.75 || absy >= 0.5) && scale == 0)
+      else if (absx < 1.0
+	       && absx >= 0.5
+	       && scale == 0
+	       && absx * absx + absy * absy >= 0.5)
 	{
 	  double d2m1 = __x2y2m1 (absx, absy);
 	  __real__ result = __log1p (d2m1) * (M_LOG10E / 2.0);