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.9000-695-g43e6628

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  43e662837ca64a5141a5ebbb2d6f9d15513524d7 (commit)
      from  540af6e2f172a016719d3970433b9f6aeb0097f6 (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=43e662837ca64a5141a5ebbb2d6f9d15513524d7

commit 43e662837ca64a5141a5ebbb2d6f9d15513524d7
Author: Joseph Myers <>
Date:   Tue Oct 31 17:04:30 2017 +0000

    Define CMPLX macros for more _FloatN, _FloatNx types.
    Continuing the preparation for additional _FloatN / _FloatNx type
    support, this patch defines CMPLX* macros for all such types, as
    already done for _Float128.
    Tested for x86_64.
    	* math/complex.h
    	[__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
    	New macro.
    	[__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
    	[__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
    	[__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
    	(CMPLXF32X): Likewise.
    	[__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
    	(CMPLXF64X): Likewise.
    	[__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
    	(CMPLXF128X): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 52ee8ee..9c03aba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2017-10-31  Joseph Myers  <>
+	* math/complex.h
+	New macro.
+	Likewise.
+	Likewise.
+	(CMPLXF32X): Likewise.
+	(CMPLXF64X): Likewise.
+	(CMPLXF128X): Likewise.
 	* math/math.h
 	[__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
 	(__MATH_EVAL_FMT2): Define to add 0.0f.
diff --git a/math/complex.h b/math/complex.h
index 9a6cc3e..43b4c7d 100644
--- a/math/complex.h
+++ b/math/complex.h
@@ -59,10 +59,35 @@ __BEGIN_DECLS
 # define CMPLXL(x, y) __builtin_complex ((long double) (x), (long double) (y))
+#if __HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)
+# define CMPLXF16(x, y) __builtin_complex ((_Float16) (x), (_Float16) (y))
+#if __HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)
+# define CMPLXF32(x, y) __builtin_complex ((_Float32) (x), (_Float32) (y))
+#if __HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)
+# define CMPLXF64(x, y) __builtin_complex ((_Float64) (x), (_Float64) (y))
 #if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
 # define CMPLXF128(x, y) __builtin_complex ((_Float128) (x), (_Float128) (y))
+# define CMPLXF32X(x, y) __builtin_complex ((_Float32x) (x), (_Float32x) (y))
+# define CMPLXF64X(x, y) __builtin_complex ((_Float64x) (x), (_Float64x) (y))
+#if __HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)
+# define CMPLXF128X(x, y)					\
+  __builtin_complex ((_Float128x) (x), (_Float128x) (y))
 /* The file <bits/cmathcalls.h> contains the prototypes for all the
    actual math functions.  These macros are used for those prototypes,
    so we can easily declare each function as both `name' and `__name',


Summary of changes:
 ChangeLog      |   14 ++++++++++++++
 math/complex.h |   25 +++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 0 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]