[PATCH] x86_64: Utilize vector math functions w/o -fopenmp
Joseph Myers
joseph@codesourcery.com
Fri Dec 4 18:43:00 GMT 2015
On Fri, 4 Dec 2015, Andrew Senkevich wrote:
> Indeed, and patch became much shorter
>
> diff --git a/sysdeps/x86/fpu/bits/math-vector.h
> b/sysdeps/x86/fpu/bits/math-vector.h
> index f3bfb86..13d720e 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")))
This shorter patch is OK with spaces added between __attribute__ and '(',
and between __simd__ and '('.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list