[PATCH 1/N] x86_64 vectorization support: vectorized math functions addition to Glibc

Andi Kleen andi@firstfloor.org
Fri Sep 12 16:55:00 GMT 2014


> Because GCC supports even another flavor, which presumably the patches
> implement.  The two you are mentioning are for compatibility with existing
> math libraries.  The third one is used by #pragma omp declare simd
> functions and Cilk+ elemental functions.  So, to use those you don't
> need any extra gcc support, glibc headers could just add
> #if defined(__OPENMP) && __OPENMP >= 201307
> #pragma omp declare simd
> #endif
> on the prototypes (of course maybe with some clauses if needed).

Makes sense. Thanks.

-Andi



More information about the Libc-alpha mailing list