about summary refs log tree commit diff
path: root/math/s_clog10f.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_clog10f.c')
-rw-r--r--math/s_clog10f.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/s_clog10f.c b/math/s_clog10f.c
index b77a849d4e..1e6ebbb0af 100644
--- a/math/s_clog10f.c
+++ b/math/s_clog10f.c
@@ -82,14 +82,17 @@ __clog10f (__complex__ float x)
 	  __real__ result = __log1pf (d2m1) * ((float) M_LOG10E / 2.0f);
 	}
       else if (absx < 1.0f
-	       && absx >= 0.75f
+	       && absx >= 0.5f
 	       && absy < FLT_EPSILON / 2.0f
 	       && scale == 0)
 	{
 	  float d2m1 = (absx - 1.0f) * (absx + 1.0f);
 	  __real__ result = __log1pf (d2m1) * ((float) M_LOG10E / 2.0f);
 	}
-      else if (absx < 1.0f && (absx >= 0.75f || absy >= 0.5f) && scale == 0)
+      else if (absx < 1.0f
+	       && absx >= 0.5f
+	       && scale == 0
+	       && absx * absx + absy * absy >= 0.5f)
 	{
 	  float d2m1 = __x2y2m1f (absx, absy);
 	  __real__ result = __log1pf (d2m1) * ((float) M_LOG10E / 2.0f);