summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/e_atanh.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/src/e_atanh.c')
-rw-r--r--lib/msun/src/e_atanh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/msun/src/e_atanh.c b/lib/msun/src/e_atanh.c
index 7d85023..aeb8a75 100644
--- a/lib/msun/src/e_atanh.c
+++ b/lib/msun/src/e_atanh.c
@@ -5,13 +5,13 @@
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
+ * software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/
#ifndef lint
-static char rcsid[] = "$Id: e_atanh.c,v 1.6 1994/08/18 23:05:12 jtc Exp $";
+static char rcsid[] = "$Id: e_atanh.c,v 1.1.1.1 1994/08/19 09:39:43 jkh Exp $";
#endif
/* __ieee754_atanh(x)
@@ -21,7 +21,7 @@ static char rcsid[] = "$Id: e_atanh.c,v 1.6 1994/08/18 23:05:12 jtc Exp $";
* 1 2x x
* atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)
* 2 1 - x 1 - x
- *
+ *
* For x<0.5
* atanh(x) = 0.5*log1p(2x+2x*x/(1-x))
*
@@ -61,14 +61,14 @@ static double zero = 0.0;
ix = hx&0x7fffffff;
if ((ix|((lx|(-lx))>>31))>0x3ff00000) /* |x|>1 */
return (x-x)/(x-x);
- if(ix==0x3ff00000)
+ if(ix==0x3ff00000)
return x/zero;
if(ix<0x3e300000&&(huge+x)>zero) return x; /* x<2**-28 */
SET_HIGH_WORD(x,ix);
if(ix<0x3fe00000) { /* x < 0.5 */
t = x+x;
t = 0.5*log1p(t+t*x/(one-x));
- } else
+ } else
t = 0.5*log1p((x+x)/(one-x));
if(hx>=0) return t; else return -t;
}
OpenPOWER on IntegriCloud