about summary refs log tree commit diff
path: root/math/s_catanhl.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-04-24 18:59:37 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-04-24 18:59:37 +0000
commit77f143fdb4770278f90e8f64d673b7e84d84a99f (patch)
tree61a1918bf2cbd20de21dda3a34c5353bbdf47ed9 /math/s_catanhl.c
parent2f38fbfe09e4856c571bf0c80844e5dac9bc77ec (diff)
downloadglibc-77f143fdb4770278f90e8f64d673b7e84d84a99f.tar.gz
glibc-77f143fdb4770278f90e8f64d673b7e84d84a99f.tar.xz
glibc-77f143fdb4770278f90e8f64d673b7e84d84a99f.zip
Use suffixed floating-point constants in float and long double catan/catanh.
Diffstat (limited to 'math/s_catanhl.c')
-rw-r--r--math/s_catanhl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/math/s_catanhl.c b/math/s_catanhl.c
index 4897c0c871..7e2b894257 100644
--- a/math/s_catanhl.c
+++ b/math/s_catanhl.c
@@ -58,24 +58,24 @@ __catanhl (__complex__ long double x)
     {
       long double i2 = __imag__ x * __imag__ x;
 
-      long double num = 1.0 + __real__ x;
+      long double num = 1.0L + __real__ x;
       num = i2 + num * num;
 
-      long double den = 1.0 - __real__ x;
+      long double den = 1.0L - __real__ x;
       den = i2 + den * den;
 
       long double f = num / den;
-      if (f < 0.5)
-	__real__ res = 0.25 * __ieee754_logl (f);
+      if (f < 0.5L)
+	__real__ res = 0.25L * __ieee754_logl (f);
       else
 	{
-	  num = 4.0 * __real__ x;
-	  __real__ res = 0.25 * __log1pl (num / den);
+	  num = 4.0L * __real__ x;
+	  __real__ res = 0.25L * __log1pl (num / den);
 	}
 
       den = 1 - __real__ x * __real__ x - i2;
 
-      __imag__ res = 0.5 * __ieee754_atan2l (2.0 * __imag__ x, den);
+      __imag__ res = 0.5L * __ieee754_atan2l (2.0L * __imag__ x, den);
     }
 
   return res;