Fortran vector math header creation

Martin Liška mliska@suse.cz
Tue Nov 20 10:02:00 GMT 2018


Hi.

I've working on SIMD support for Fortran and I've got a GCC patch
ready to be installed:
https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01622.html

Now I would need to generate math-vector-fortran.h header file in glibc.
Can be generated from math-vector.h via attached following script.

$ cat math-vector.h | ./generate-fortran-math-vector.py > math-vector-fortran.h && cat math-vector-fortran.h
!GCC$ builtin (cos) attributes simd (notinbranch)
!GCC$ builtin (cosf) attributes simd (notinbranch)
!GCC$ builtin (sin) attributes simd (notinbranch)
!GCC$ builtin (sinf) attributes simd (notinbranch)
!GCC$ builtin (sincos) attributes simd (notinbranch)
!GCC$ builtin (sincosf) attributes simd (notinbranch)
!GCC$ builtin (log) attributes simd (notinbranch)
!GCC$ builtin (logf) attributes simd (notinbranch)
!GCC$ builtin (exp) attributes simd (notinbranch)
!GCC$ builtin (expf) attributes simd (notinbranch)
!GCC$ builtin (pow) attributes simd (notinbranch)
!GCC$ builtin (powf) attributes simd (notinbranch)

Can you please help me how to integrate that to glibc build process?
Do you use a scripting language?

Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generate-fortran-math-vector.py
Type: text/x-python
Size: 481 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-help/attachments/20181120/ff61680c/attachment.py>


More information about the Libc-help mailing list