about summary refs log tree commit diff
path: root/math/s_clogl.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_clogl.c')
-rw-r--r--math/s_clogl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/s_clogl.c b/math/s_clogl.c
index 6325df4662..4ec4c80720 100644
--- a/math/s_clogl.c
+++ b/math/s_clogl.c
@@ -83,14 +83,17 @@ __clogl (__complex__ long double x)
 	  __real__ result = __log1pl (d2m1) / 2.0L;
 	}
       else if (absx < 1.0L
-	       && absx >= 0.75L
+	       && absx >= 0.5L
 	       && absy < LDBL_EPSILON / 2.0L
 	       && scale == 0)
 	{
 	  long double d2m1 = (absx - 1.0L) * (absx + 1.0L);
 	  __real__ result = __log1pl (d2m1) / 2.0L;
 	}
-      else if (absx < 1.0L && (absx >= 0.75L || absy >= 0.5L) && scale == 0)
+      else if (absx < 1.0L
+	       && absx >= 0.5L
+	       && scale == 0
+	       && absx * absx + absy * absy >= 0.5L)
 	{
 	  long double d2m1 = __x2y2m1l (absx, absy);
 	  __real__ result = __log1pl (d2m1) / 2.0L;