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.26.9000-928-g1f70eae


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  1f70eae4cf0ca826ddbc2b61720e8aeae1e13de4 (commit)
      from  e2c4dce5350b8782d311467045c615734b2db270 (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=1f70eae4cf0ca826ddbc2b61720e8aeae1e13de4

commit 1f70eae4cf0ca826ddbc2b61720e8aeae1e13de4
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Dec 5 18:01:25 2017 +0000

    Support defining strfromf64, strfromf32x aliases.
    
    This patch adds support for defining strfromf64 and strfromf32x
    aliases of strfromd when the corresponding types are enabled.
    
    Tested for x86_64; also tested with build-many-glibcs.py in
    conjunction with other _Float64 / _Float32x changes.
    
    	* stdlib/strfromd.c: Include <bits/floatn.h>.
    	[__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
    	and later undefine as macro and define as weak alias.
    	[__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
    	Likewise.

diff --git a/ChangeLog b/ChangeLog
index 8ed099d..bcc49a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
 
+	* stdlib/strfromd.c: Include <bits/floatn.h>.
+	[__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
+	and later undefine as macro and define as weak alias.
+	[__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
+	Likewise.
+
 	* math/test-float32x.h: New file.
 	* math/test-float64.h: Likewise.
 
diff --git a/stdlib/strfromd.c b/stdlib/strfromd.c
index 5342059..85c5555 100644
--- a/stdlib/strfromd.c
+++ b/stdlib/strfromd.c
@@ -16,7 +16,32 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <bits/floatn.h>
+
 #define FLOAT		double
 #define STRFROM		strfromd
 
+#if __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64
+# define strfromf64 __hide_strfromf64
+#endif
+#if __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X
+# define strfromf32x __hide_strfromf32x
+#endif
+
+#include <stdlib.h>
+
+#if __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64
+# undef strfromf64
+#endif
+#if __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X
+# undef strfromf32x
+#endif
+
 #include "strfrom-skeleton.c"
+
+#if __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64
+weak_alias (strfromd, strfromf64)
+#endif
+#if __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X
+weak_alias (strfromd, strfromf32x)
+#endif

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

Summary of changes:
 ChangeLog         |    6 ++++++
 stdlib/strfromd.c |   25 +++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 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]