about summary refs log tree commit diff
path: root/sysdeps/x86/fpu/finclude/math-vector-fortran.h
diff options
context:
space:
mode:
authorSunil K Pandey <skpgkp2@gmail.com>2021-12-29 10:19:39 -0800
committerSunil K Pandey <skpgkp2@gmail.com>2021-12-30 10:19:13 -0800
commitc21c7bc24ec58c516d1608695d9c5a86f2f2fc0c (patch)
tree0aa72249cd873496766c00736e08bd13ddd23b9d /sysdeps/x86/fpu/finclude/math-vector-fortran.h
parent8881cca8fb8d3a7ee89d174017dd27eded90366c (diff)
downloadglibc-c21c7bc24ec58c516d1608695d9c5a86f2f2fc0c.tar.gz
glibc-c21c7bc24ec58c516d1608695d9c5a86f2f2fc0c.tar.xz
glibc-c21c7bc24ec58c516d1608695d9c5a86f2f2fc0c.zip
x86-64: Add vector tan/tanf implementation to libmvec
Implement vectorized tan/tanf containing SSE, AVX, AVX2 and
AVX512 versions for libmvec as per vector ABI.  It also contains
accuracy and ABI tests for vector tan/tanf with regenerated ulps.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/x86/fpu/finclude/math-vector-fortran.h')
-rw-r--r--sysdeps/x86/fpu/finclude/math-vector-fortran.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/x86/fpu/finclude/math-vector-fortran.h b/sysdeps/x86/fpu/finclude/math-vector-fortran.h
index 818134dc75..d2735fd064 100644
--- a/sysdeps/x86/fpu/finclude/math-vector-fortran.h
+++ b/sysdeps/x86/fpu/finclude/math-vector-fortran.h
@@ -68,6 +68,8 @@
 !GCC$ builtin (asinhf) attributes simd (notinbranch) if('x86_64')
 !GCC$ builtin (erfc) attributes simd (notinbranch) if('x86_64')
 !GCC$ builtin (erfcf) attributes simd (notinbranch) if('x86_64')
+!GCC$ builtin (tan) attributes simd (notinbranch) if('x86_64')
+!GCC$ builtin (tanf) attributes simd (notinbranch) if('x86_64')
 
 !GCC$ builtin (cos) attributes simd (notinbranch) if('x32')
 !GCC$ builtin (cosf) attributes simd (notinbranch) if('x32')
@@ -121,3 +123,5 @@
 !GCC$ builtin (asinhf) attributes simd (notinbranch) if('x32')
 !GCC$ builtin (erfc) attributes simd (notinbranch) if('x32')
 !GCC$ builtin (erfcf) attributes simd (notinbranch) if('x32')
+!GCC$ builtin (tan) attributes simd (notinbranch) if('x32')
+!GCC$ builtin (tanf) attributes simd (notinbranch) if('x32')