Building math-vector-fortran.h in glibc
Steve Ellcey
sellcey@marvell.com
Fri Jan 18 16:08:00 GMT 2019
Martin,
I have been working with libmvec on aarch64 and I took your glibc script
to create math-vector-fortran.h and incorporated it into the glibc
math Makefile to try it out. The patch is attached to this email.
The main thing I noticed is that your script was specifically grepping
for __DECL_SIMD_x86_64 and when I created a math-vector.h file for
Aarch64 I used __DECL_SIMD_AARCH64 so I had to change the script.
I don't think we want a different script for each target so we need to
find some way to deal with this. Either use a common name on all
platforms, which I think is OK since this should be an internal
macro name that is not used by end users or find a way to generalize
the match regardless of the name.
The other thought I had was, instead of scanning math-vector.h,
have the script preprocess math.h itself and then look for simd
attributes after preprocessing. I think that would make the scanner
more complex though.
Steve Ellcey
sellcey@marvell.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: min.patch
Type: text/x-patch
Size: 4695 bytes
Desc: min.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20190118/53e84e0d/attachment.bin>
More information about the Libc-alpha
mailing list