about summary refs log tree commit diff
path: root/math/s_catanhf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_catanhf.c')
-rw-r--r--math/s_catanhf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/math/s_catanhf.c b/math/s_catanhf.c
index ca9a30101e..9d90a00c83 100644
--- a/math/s_catanhf.c
+++ b/math/s_catanhf.c
@@ -58,24 +58,24 @@ __catanhf (__complex__ float x)
     {
       float i2 = __imag__ x * __imag__ x;
 
-      float num = 1.0 + __real__ x;
+      float num = 1.0f + __real__ x;
       num = i2 + num * num;
 
-      float den = 1.0 - __real__ x;
+      float den = 1.0f - __real__ x;
       den = i2 + den * den;
 
       float f = num / den;
-      if (f < 0.5)
-	__real__ res = 0.25 * __ieee754_logf (f);
+      if (f < 0.5f)
+	__real__ res = 0.25f * __ieee754_logf (f);
       else
 	{
-	  num = 4.0 * __real__ x;
-	  __real__ res = 0.25 * __log1pf (num / den);
+	  num = 4.0f * __real__ x;
+	  __real__ res = 0.25f * __log1pf (num / den);
 	}
 
       den = 1 - __real__ x * __real__ x - i2;
 
-      __imag__ res = 0.5 * __ieee754_atan2f (2.0 * __imag__ x, den);
+      __imag__ res = 0.5f * __ieee754_atan2f (2.0f * __imag__ x, den);
     }
 
   return res;