This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.24-436-g6dc0741


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  6dc07416777012947152edaf5b7848c9e62c2fc8 (commit)
      from  2314a29b623ecec8cb3ec4f46ada534027754e7e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6dc07416777012947152edaf5b7848c9e62c2fc8

commit 6dc07416777012947152edaf5b7848c9e62c2fc8
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Dec 1 23:23:51 2016 +0000

    Make ldbl-128 getpayload, setpayload functions use _Float128.
    
    When I added the getpayload and setpayload functions I failed to make
    the ldbl-128 functions use the _Float128 type name like most other
    ldbl-128 functions do in preparation for being used to implement *f128
    functions.  This patch fixes them to use that name.
    
    Tested for mips64.
    
    	* sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
    	_Float128 instead of long double.
    	* sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 2d8ceea..7acf5ca 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 ac7f6ed..8334e30 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 5f54811..7fcab53 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);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                     |    4 ++++
 sysdeps/ieee754/ldbl-128/s_getpayloadl.c      |    6 +++---
 sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c |    2 +-
 3 files changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]