about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/ieee754/ldbl-128/s_getpayloadl.c6
-rw-r--r--sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d8ceea193..7acf5caabb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
+	_Float128 instead of long double.
+	* sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
+
 	* sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
 	* sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
 	* sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
diff --git a/sysdeps/ieee754/ldbl-128/s_getpayloadl.c b/sysdeps/ieee754/ldbl-128/s_getpayloadl.c
index ac7f6edce2..8334e30110 100644
--- a/sysdeps/ieee754/ldbl-128/s_getpayloadl.c
+++ b/sysdeps/ieee754/ldbl-128/s_getpayloadl.c
@@ -20,8 +20,8 @@
 #include <math_private.h>
 #include <stdint.h>
 
-long double
-getpayloadl (const long double *x)
+_Float128
+getpayloadl (const _Float128 *x)
 {
   uint64_t hx, lx;
   GET_LDOUBLE_WORDS64 (hx, lx, *x);
@@ -51,7 +51,7 @@ getpayloadl (const long double *x)
       lx <<= shift;
     }
   hx = (hx & 0xffffffffffffULL) | ((0x3fffULL + 127 - lz) << 48);
-  long double ret;
+  _Float128 ret;
   SET_LDOUBLE_WORDS64 (ret, hx, lx);
   return ret;
 }
diff --git a/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c b/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c
index 5f548117e0..7fcab531df 100644
--- a/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c
+++ b/sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c
@@ -27,7 +27,7 @@
 #define EXPLICIT_MANT_DIG 112
 
 int
-FUNC (long double *x, long double payload)
+FUNC (_Float128 *x, _Float128 payload)
 {
   uint64_t hx, lx;
   GET_LDOUBLE_WORDS64 (hx, lx, payload);