diff options
Diffstat (limited to 'sysdeps/ieee754/ldbl-128/e_rem_pio2l.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128/e_rem_pio2l.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c b/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c index 101a4c9015..d226d4218d 100644 --- a/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c +++ b/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c @@ -1,5 +1,5 @@ /* Quad-precision floating point argument reduction. - Copyright (C) 1999-2016 Free Software Foundation, Inc. + Copyright (C) 1999-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek <jj@ultra.linux.cz> @@ -183,22 +183,22 @@ static const int32_t two_over_pi[] = { 0x7b7b89, 0x483d38, }; -static const long double c[] = { +static const _Float128 c[] = { /* 113 bits of pi/2 */ #define PI_2_1 c[0] - 0x1.921fb54442d18469898cc51701b8p+0L, + L(0x1.921fb54442d18469898cc51701b8p+0), /* pi/2 - PI_2_1 */ #define PI_2_1t c[1] - 0x3.9a252049c1114cf98e804177d4c8p-116L, + L(0x3.9a252049c1114cf98e804177d4c8p-116), }; -int32_t __ieee754_rem_pio2l(long double x, long double *y) +int32_t __ieee754_rem_pio2l(_Float128 x, _Float128 *y) { - long double z, w, t; + _Float128 z, w, t; double tx[8]; int64_t exp, n, ix, hx; - u_int64_t lx; + uint64_t lx; GET_LDOUBLE_WORDS64 (hx, lx, x); ix = hx & 0x7fffffffffffffffLL; @@ -255,8 +255,8 @@ int32_t __ieee754_rem_pio2l(long double x, long double *y) /* The result is now stored in 3 double values, we need to convert it into two long double values. */ - t = (long double) tx [6] + (long double) tx [7]; - w = (long double) tx [5]; + t = (_Float128) tx [6] + (_Float128) tx [7]; + w = (_Float128) tx [5]; if (hx >= 0) { |