On Fri, Jun 05, 2020 at 01:58:55PM +0000, Feltgen, Eric wrote:
> my name is Eric, I'm a german student at RWTH Aachen University currently 
> researching OpenMP.
> 
> 
> For my research, I'm also looking at math functions provided by compilers 
> like GCC. When writing vectorizable code, it is important to use math 
> functions which also allow for vectorization. I've read that gcc includes a 
> set of math functions which are SIMD compatible. Where can I find resources 
> on them?
> 
> 
> It would be awesome if you could tell me where to find documentation.

It is glibc that provides them, not GCC.
See 
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/x86/fpu/bits/math-vector.h;h=0801905da7b85e2f43fb6b682a7b84c5eec469d4;hb=HEAD
for the header file and the functions are then implemented (mostly?) in 
assembly in
e.g. /usr/src/libc/sysdeps/x86_64/fpu/ directory.  There is similar support
for aarch64.
All that is provided by GCC is -fopenmp #pragma omp declare simd support
and support for corresponding simd attribute (which is what is used if
-fopenmp is not enabled).

        Jakub

Reply via email to