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-926-gf2d64d6


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  f2d64d621e620b3b11fc4ed55f3e753ed6dc31e7 (commit)
      from  91c318e7b91467984bf68014ef37539d084a34ab (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=f2d64d621e620b3b11fc4ed55f3e753ed6dc31e7

commit f2d64d621e620b3b11fc4ed55f3e753ed6dc31e7
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Dec 5 16:59:34 2017 +0000

    Support _Float64, _Float32x in libm_alias_double.
    
    This patch makes the libm_alias_double macros support creating
    _Float64 and _Float32x aliases, in preparation for enabling glibc
    support for those types.
    
    Tested for x86_64; also tested with build-many-glibcs.py in
    conjunction with other _Float64 / _Float32x changes.
    
    	* sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
    	(libm_alias_double_other_r_f64): New macro.
    	(libm_alias_double_other_r_f32x): Likewise.
    	(libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
    	libm_alias_double_other_r_f32x.
    	(libm_alias_double_r): Use semicolon before call to
    	libm_alias_double_other_r.
    	* sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
    	<bits/floatn.h>.
    	(libm_alias_double_other_r_f64): New macro.
    	(libm_alias_double_other_r_f32x): Likewise.
    	(libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
    	libm_alias_double_other_r_f32x.

diff --git a/ChangeLog b/ChangeLog
index 5636a57..afe13d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2017-12-05  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
+	(libm_alias_double_other_r_f64): New macro.
+	(libm_alias_double_other_r_f32x): Likewise.
+	(libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
+	libm_alias_double_other_r_f32x.
+	(libm_alias_double_r): Use semicolon before call to
+	libm_alias_double_other_r.
+	* sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
+	<bits/floatn.h>.
+	(libm_alias_double_other_r_f64): New macro.
+	(libm_alias_double_other_r_f32x): Likewise.
+	(libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
+	libm_alias_double_other_r_f32x.
+
 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
diff --git a/sysdeps/generic/libm-alias-double.h b/sysdeps/generic/libm-alias-double.h
index 0593ad9..f222cf8 100644
--- a/sysdeps/generic/libm-alias-double.h
+++ b/sysdeps/generic/libm-alias-double.h
@@ -19,11 +19,29 @@
 #ifndef _LIBM_ALIAS_DOUBLE_H
 #define _LIBM_ALIAS_DOUBLE_H
 
+#include <bits/floatn.h>
+
+#if __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64
+# define libm_alias_double_other_r_f64(from, to, r)	\
+  weak_alias (from ## r, to ## f64 ## r)
+#else
+# define libm_alias_double_other_r_f64(from, to, r)
+#endif
+
+#if __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X
+# define libm_alias_double_other_r_f32x(from, to, r)	\
+  weak_alias (from ## r, to ## f32x ## r)
+#else
+# define libm_alias_double_other_r_f32x(from, to, r)
+#endif
+
 /* Define _FloatN / _FloatNx aliases for a double libm function that
    has internal name FROM ## R and public names TO ## suffix ## R for
    each suffix of a supported _FloatN / _FloatNx floating-point type
    with the same format as double.  */
-#define libm_alias_double_other_r(from, to, r)
+#define libm_alias_double_other_r(from, to, r)	\
+  libm_alias_double_other_r_f64 (from, to, r);	\
+  libm_alias_double_other_r_f32x (from, to, r)
 
 /* Likewise, but without the R suffix.  */
 #define libm_alias_double_other(from, to)	\
@@ -40,11 +58,11 @@
 # define libm_alias_double_r(from, to, r)	\
   weak_alias (from ## r, to ## r)		\
   strong_alias (from ## r, from ## l ## r)	\
-  weak_alias (from ## r, to ## l ## r)		\
+  weak_alias (from ## r, to ## l ## r);		\
   libm_alias_double_other_r (from, to, r)
 #else
 # define libm_alias_double_r(from, to, r)	\
-  weak_alias (from ## r, to ## r)		\
+  weak_alias (from ## r, to ## r);		\
   libm_alias_double_other_r (from, to, r)
 #endif
 
diff --git a/sysdeps/ieee754/ldbl-opt/libm-alias-double.h b/sysdeps/ieee754/ldbl-opt/libm-alias-double.h
index f98e9d5..37ef612 100644
--- a/sysdeps/ieee754/ldbl-opt/libm-alias-double.h
+++ b/sysdeps/ieee754/ldbl-opt/libm-alias-double.h
@@ -19,15 +19,32 @@
 #ifndef _LIBM_ALIAS_DOUBLE_H
 #define _LIBM_ALIAS_DOUBLE_H
 
+#include <bits/floatn.h>
 #include <math_ldbl_opt.h>
 #include <first-versions.h>
 #include <ldbl-compat-choose.h>
 
+#if __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64
+# define libm_alias_double_other_r_f64(from, to, r)	\
+  weak_alias (from ## r, to ## f64 ## r)
+#else
+# define libm_alias_double_other_r_f64(from, to, r)
+#endif
+
+#if __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X
+# define libm_alias_double_other_r_f32x(from, to, r)	\
+  weak_alias (from ## r, to ## f32x ## r)
+#else
+# define libm_alias_double_other_r_f32x(from, to, r)
+#endif
+
 /* Define _FloatN / _FloatNx aliases for a double libm function that
    has internal name FROM ## R and public names TO ## suffix ## R for
    each suffix of a supported _FloatN / _FloatNx floating-point type
    with the same format as double.  */
-#define libm_alias_double_other_r(from, to, r)
+#define libm_alias_double_other_r(from, to, r)	\
+  libm_alias_double_other_r_f64 (from, to, r);	\
+  libm_alias_double_other_r_f32x (from, to, r)
 
 /* Likewise, but without the R suffix.  */
 #define libm_alias_double_other(from, to)	\

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

Summary of changes:
 ChangeLog                                    |   16 ++++++++++++++++
 sysdeps/generic/libm-alias-double.h          |   24 +++++++++++++++++++++---
 sysdeps/ieee754/ldbl-opt/libm-alias-double.h |   19 ++++++++++++++++++-
 3 files changed, 55 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]