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.22-581-g377ed00

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  377ed004f2c5b498e0620426a0af447172351f35 (commit)
      from  5d1d4918eebdaaf0ab0a5baf28c502c32c21f12e (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=377ed004f2c5b498e0620426a0af447172351f35

commit 377ed004f2c5b498e0620426a0af447172351f35
Author: Andrew Senkevich <>
Date:   Mon Dec 7 21:58:26 2015 +0300

    Utilize x86_64 vector math functions w/o -fopenmp.
    This patch allows to use x86_64 vector math functions with GCC 6.*
    without OpenMP SIMD constructs.  For additional details please visit
        * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp declare vector math
        functions with GCC 6.* __attribute__ ((__simd__)).

diff --git a/ChangeLog b/ChangeLog
index 379ba75..7d9622b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-07  Andrew Senkevich  <>
+	* sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
+	__attribute__ ((__simd__)) for vector math function declarations.
 2015-12-04  Paul Eggert  <>
 	Fix typo in strncat, wcsncat manual entries
diff --git a/sysdeps/x86/fpu/bits/math-vector.h b/sysdeps/x86/fpu/bits/math-vector.h
index f3bfb86..495e895 100644
--- a/sysdeps/x86/fpu/bits/math-vector.h
+++ b/sysdeps/x86/fpu/bits/math-vector.h
@@ -28,6 +28,12 @@
 # if defined _OPENMP && _OPENMP >= 201307
 /* OpenMP case.  */
 #  define __DECL_SIMD_x86_64 _Pragma ("omp declare simd notinbranch")
+# elif __GNUC_PREREQ (6,0)
+/* W/o OpenMP use GCC 6.* __attribute__ ((__simd__)).  */
+#  define __DECL_SIMD_x86_64 __attribute__ ((__simd__ ("notinbranch")))
+# endif
+# ifdef __DECL_SIMD_x86_64
 #  undef __DECL_SIMD_cos
 #  define __DECL_SIMD_cos __DECL_SIMD_x86_64
 #  undef __DECL_SIMD_cosf


Summary of changes:
 ChangeLog                          |    5 +++++
 sysdeps/x86/fpu/bits/math-vector.h |    6 ++++++
 2 files changed, 11 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]