summaryrefslogtreecommitdiffstats
path: root/lib/msun/bsdsrc/b_exp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/bsdsrc/b_exp.c')
-rw-r--r--lib/msun/bsdsrc/b_exp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/msun/bsdsrc/b_exp.c b/lib/msun/bsdsrc/b_exp.c
index 9b4f045..fa6ea75 100644
--- a/lib/msun/bsdsrc/b_exp.c
+++ b/lib/msun/bsdsrc/b_exp.c
@@ -38,21 +38,21 @@ static char sccsid[] = "@(#)exp.c 8.1 (Berkeley) 6/4/93";
/* EXP(X)
* RETURN THE EXPONENTIAL OF X
* DOUBLE PRECISION (IEEE 53 bits, VAX D FORMAT 56 BITS)
- * CODED IN C BY K.C. NG, 1/19/85;
+ * CODED IN C BY K.C. NG, 1/19/85;
* REVISED BY K.C. NG on 2/6/85, 2/15/85, 3/7/85, 3/24/85, 4/16/85, 6/14/86.
*
* Required system supported functions:
- * scalb(x,n)
- * copysign(x,y)
+ * scalb(x,n)
+ * copysign(x,y)
* finite(x)
*
* Method:
- * 1. Argument Reduction: given the input x, find r and integer k such
+ * 1. Argument Reduction: given the input x, find r and integer k such
* that
- * x = k*ln2 + r, |r| <= 0.5*ln2 .
+ * x = k*ln2 + r, |r| <= 0.5*ln2 .
* r will be represented as r := z+c for better accuracy.
*
- * 2. Compute exp(r) by
+ * 2. Compute exp(r) by
*
* exp(r) = 1 + r + r*R1/(2-R1),
* where
@@ -143,7 +143,7 @@ double x;
}
/* end of x > lntiny */
- else
+ else
/* exp(-big#) underflows to zero */
if(finite(x)) return(scalb(1.0,-5000));
@@ -152,7 +152,7 @@ double x;
}
/* end of x < lnhuge */
- else
+ else
/* exp(INF) is INF, exp(+big#) overflows to INF */
return( finite(x) ? scalb(1.0,5000) : x);
}
@@ -188,7 +188,7 @@ double x, c;
}
/* end of x > lntiny */
- else
+ else
/* exp(-big#) underflows to zero */
if(finite(x)) return(scalb(1.0,-5000));
@@ -197,7 +197,7 @@ double x, c;
}
/* end of x < lnhuge */
- else
+ else
/* exp(INF) is INF, exp(+big#) overflows to INF */
return( finite(x) ? scalb(1.0,5000) : x);
}
OpenPOWER on IntegriCloud