summaryrefslogtreecommitdiffstats
path: root/lib/msun/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/src')
-rw-r--r--lib/msun/src/e_coshf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/msun/src/e_coshf.c b/lib/msun/src/e_coshf.c
index d2368a6..ebd659e 100644
--- a/lib/msun/src/e_coshf.c
+++ b/lib/msun/src/e_coshf.c
@@ -38,20 +38,20 @@ __ieee754_coshf(float x)
if(ix<0x3eb17218) {
t = expm1f(fabsf(x));
w = one+t;
- if (ix<0x24000000) return w; /* cosh(tiny) = 1 */
+ if (ix<0x39800000) return one; /* cosh(tiny) = 1 */
return one+(t*t)/(w+w);
}
- /* |x| in [0.5*ln2,22], return (exp(|x|)+1/exp(|x|)/2; */
- if (ix < 0x41b00000) {
+ /* |x| in [0.5*ln2,9], return (exp(|x|)+1/exp(|x|))/2; */
+ if (ix < 0x41100000) {
t = __ieee754_expf(fabsf(x));
return half*t+half/t;
}
- /* |x| in [22, log(maxdouble)] return half*exp(|x|) */
- if (ix < 0x42b17180) return half*__ieee754_expf(fabsf(x));
+ /* |x| in [9, log(maxfloat)] return half*exp(|x|) */
+ if (ix < 0x42b17217) return half*__ieee754_expf(fabsf(x));
- /* |x| in [log(maxdouble), overflowthresold] */
+ /* |x| in [log(maxfloat), overflowthresold] */
if (ix<=0x42b2d4fc) {
w = __ieee754_expf(half*fabsf(x));
t = half*w;
OpenPOWER on IntegriCloud