From c21c7bc24ec58c516d1608695d9c5a86f2f2fc0c Mon Sep 17 00:00:00 2001 From: Sunil K Pandey Date: Wed, 29 Dec 2021 10:19:39 -0800 Subject: 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 --- sysdeps/x86/fpu/bits/math-vector.h | 4 ++++ sysdeps/x86/fpu/finclude/math-vector-fortran.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'sysdeps/x86') diff --git a/sysdeps/x86/fpu/bits/math-vector.h b/sysdeps/x86/fpu/bits/math-vector.h index 9a55e2e..8de1d6a 100644 --- a/sysdeps/x86/fpu/bits/math-vector.h +++ b/sysdeps/x86/fpu/bits/math-vector.h @@ -138,6 +138,10 @@ # define __DECL_SIMD_erfc __DECL_SIMD_x86_64 # undef __DECL_SIMD_erfcf # define __DECL_SIMD_erfcf __DECL_SIMD_x86_64 +# undef __DECL_SIMD_tan +# define __DECL_SIMD_tan __DECL_SIMD_x86_64 +# undef __DECL_SIMD_tanf +# define __DECL_SIMD_tanf __DECL_SIMD_x86_64 # endif #endif diff --git a/sysdeps/x86/fpu/finclude/math-vector-fortran.h b/sysdeps/x86/fpu/finclude/math-vector-fortran.h index 818134d..d2735fd 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') -- cgit v1.1