This is the mail archive of the 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-578-g596f701

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  596f70134a8f11967c65c1d55a94a3a2718c731d (commit)
      from  02010e79ceb7989686a0c8c40878024e30fdc888 (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 -----------------------------------------------------------------;a=commitdiff;h=596f70134a8f11967c65c1d55a94a3a2718c731d

commit 596f70134a8f11967c65c1d55a94a3a2718c731d
Author: Joseph Myers <>
Date:   Mon Oct 16 13:28:30 2017 +0000

    Support running libm tests for float128 as alias for long double.
    This patch adds support for running libm tests for float128 in the
    case where the float128 functions are aliases of long double
    functions.  In this case, the sysdeps Makeconfig file
    (i.e. sysdeps/ieee754/ldbl-128/Makeconfig) will need to define
    "float128-alias-fcts = yes" to enable the tests.
    Tested for x86_64.  Also tested with; installed
    stripped shared libraries are unchanged by the patch.  Also tested
    together with changes to enable the float128 aliases.
    	* math/Makefile (test-types): Add
    	* math/test-float128.h (TYPE_STR): Define conditional on
    	(ULP_IDX): Likewise.
    	(ULP_I_IDX): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 52ea0d9..e45b749 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2017-10-16  Joseph Myers  <>
+	* math/Makefile (test-types): Add
+	$(type-float128-$(float128-alias-fcts)).
+	* math/test-float128.h (TYPE_STR): Define conditional on
+	(ULP_IDX): Likewise.
+	(ULP_I_IDX): Likewise.
 	* stdlib/strtold.c: Include <bits/floatn.h>
 	[__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
 	and later undefine as macro.  Define as weak alias if
diff --git a/math/Makefile b/math/Makefile
index 4014471..2d47209 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -127,7 +127,8 @@ type-float128-suffix := f128
 type-float128-routines := t_sincosf128 k_sincosf128
 type-float128-yes := float128
 types = $(types-basic) $(type-float128-$(float128-fcts))
-test-types = $(test-types-basic) $(type-float128-$(float128-fcts))
+test-types = $(test-types-basic) $(type-float128-$(float128-fcts)) \
+	     $(type-float128-$(float128-alias-fcts))
 # For each of the basic types (float, double, long double), replace the
 # occurrences of 'F' in arg 1 with the appropriate suffix for the type.
diff --git a/math/test-float128.h b/math/test-float128.h
index 3132766..3fd9f54 100644
--- a/math/test-float128.h
+++ b/math/test-float128.h
@@ -28,9 +28,15 @@
 #define CFLOAT __CFLOAT128
 #define BUILD_COMPLEX(real, imag) (CMPLXF128 ((real), (imag)))
 #define PREFIX FLT128
-#define TYPE_STR "float128"
-#define ULP_IDX ULP_FLT128
-#define ULP_I_IDX ULP_I_FLT128
+# define TYPE_STR "ldouble"
+# define ULP_IDX ULP_LDBL
+# define ULP_I_IDX ULP_I_LDBL
+# define TYPE_STR "float128"
+# define ULP_IDX ULP_FLT128
+# define ULP_I_IDX ULP_I_FLT128
 #define LIT(x) __f128 (x)
 #define LITM(x) x ## f128
 #define FTOSTR strfromf128


Summary of changes:
 ChangeLog            |    7 +++++++
 math/Makefile        |    3 ++-
 math/test-float128.h |   12 +++++++++---
 3 files changed, 18 insertions(+), 4 deletions(-)

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]