diff options
Diffstat (limited to 'sysdeps/ieee754/ldbl-128/e_acoshl.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128/e_acoshl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sysdeps/ieee754/ldbl-128/e_acoshl.c b/sysdeps/ieee754/ldbl-128/e_acoshl.c index 6234289e1e..c292759ac6 100644 --- a/sysdeps/ieee754/ldbl-128/e_acoshl.c +++ b/sysdeps/ieee754/ldbl-128/e_acoshl.c @@ -30,15 +30,15 @@ #include <math.h> #include <math_private.h> -static const long double +static const _Float128 one = 1.0, -ln2 = 0.6931471805599453094172321214581766L; +ln2 = L(0.6931471805599453094172321214581766); -long double -__ieee754_acoshl(long double x) +_Float128 +__ieee754_acoshl(_Float128 x) { - long double t; - u_int64_t lx; + _Float128 t; + uint64_t lx; int64_t hx; GET_LDOUBLE_WORDS64(hx,lx,x); if(hx<0x3fff000000000000LL) { /* x < 1 */ @@ -49,13 +49,13 @@ __ieee754_acoshl(long double x) } else return __ieee754_logl(x)+ln2; /* acoshl(huge)=logl(2x) */ } else if(((hx-0x3fff000000000000LL)|lx)==0) { - return 0.0L; /* acosh(1) = 0 */ + return 0; /* acosh(1) = 0 */ } else if (hx > 0x4000000000000000LL) { /* 2**28 > x > 2 */ t=x*x; - return __ieee754_logl(2.0L*x-one/(x+__ieee754_sqrtl(t-one))); + return __ieee754_logl(2*x-one/(x+sqrtl(t-one))); } else { /* 1<x<2 */ t = x-one; - return __log1pl(t+__sqrtl(2.0L*t+t*t)); + return __log1pl(t+sqrtl(2*t+t*t)); } } strong_alias (__ieee754_acoshl, __acoshl_finite) |