summaryrefslogtreecommitdiffstats
path: root/lib/libm/src/e_coshf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/src/e_coshf.c')
-rw-r--r--lib/libm/src/e_coshf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libm/src/e_coshf.c b/lib/libm/src/e_coshf.c
index ae52f14d7a3..29eb56cfd4e 100644
--- a/lib/libm/src/e_coshf.c
+++ b/lib/libm/src/e_coshf.c
@@ -24,7 +24,7 @@ static const volatile float huge = 1.0e30;
static const float one = 1.0, half=0.5;
float
-__ieee754_coshf(float x)
+coshf(float x)
{
float t,w;
int32_t ix;
@@ -45,16 +45,16 @@ __ieee754_coshf(float x)
/* |x| in [0.5*ln2,22], return (exp(|x|)+1/exp(|x|)/2; */
if (ix < 0x41b00000) {
- t = __ieee754_expf(fabsf(x));
+ t = 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));
+ if (ix < 0x42b17180) return half*expf(fabsf(x));
/* |x| in [log(maxdouble), overflowthresold] */
if (ix<=0x42b2d4fc) {
- w = __ieee754_expf(half*fabsf(x));
+ w = expf(half*fabsf(x));
t = half*w;
return t*w;
}