diff options
author | Sunil K Pandey <skpgkp2@gmail.com> | 2021-12-29 10:13:20 -0800 |
---|---|---|
committer | Sunil K Pandey <skpgkp2@gmail.com> | 2021-12-30 10:19:03 -0800 |
commit | 8881cca8fb8d3a7ee89d174017dd27eded90366c (patch) | |
tree | aa183021a734c54404062791e2582b17a5055f40 /sysdeps/x86 | |
parent | bc1e344dc1fb7f406c42e03a63dd3dbf426af9e7 (diff) | |
download | glibc-8881cca8fb8d3a7ee89d174017dd27eded90366c.tar glibc-8881cca8fb8d3a7ee89d174017dd27eded90366c.tar.gz glibc-8881cca8fb8d3a7ee89d174017dd27eded90366c.tar.bz2 glibc-8881cca8fb8d3a7ee89d174017dd27eded90366c.zip |
x86-64: Add vector erfc/erfcf implementation to libmvec
Implement vectorized erfc/erfcf containing SSE, AVX, AVX2 and
AVX512 versions for libmvec as per vector ABI. It also contains
accuracy and ABI tests for vector erfc/erfcf with regenerated ulps.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/x86')
-rw-r--r-- | sysdeps/x86/fpu/bits/math-vector.h | 4 | ||||
-rw-r--r-- | sysdeps/x86/fpu/finclude/math-vector-fortran.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/x86/fpu/bits/math-vector.h b/sysdeps/x86/fpu/bits/math-vector.h index 71b7d660db..9a55e2e542 100644 --- a/sysdeps/x86/fpu/bits/math-vector.h +++ b/sysdeps/x86/fpu/bits/math-vector.h @@ -134,6 +134,10 @@ # define __DECL_SIMD_asinh __DECL_SIMD_x86_64 # undef __DECL_SIMD_asinhf # define __DECL_SIMD_asinhf __DECL_SIMD_x86_64 +# undef __DECL_SIMD_erfc +# define __DECL_SIMD_erfc __DECL_SIMD_x86_64 +# undef __DECL_SIMD_erfcf +# define __DECL_SIMD_erfcf __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 4d3afdf753..818134dc75 100644 --- a/sysdeps/x86/fpu/finclude/math-vector-fortran.h +++ b/sysdeps/x86/fpu/finclude/math-vector-fortran.h @@ -66,6 +66,8 @@ !GCC$ builtin (tanhf) attributes simd (notinbranch) if('x86_64') !GCC$ builtin (asinh) attributes simd (notinbranch) if('x86_64') !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 (cos) attributes simd (notinbranch) if('x32') !GCC$ builtin (cosf) attributes simd (notinbranch) if('x32') @@ -117,3 +119,5 @@ !GCC$ builtin (tanhf) attributes simd (notinbranch) if('x32') !GCC$ builtin (asinh) attributes simd (notinbranch) if('x32') !GCC$ builtin (asinhf) attributes simd (notinbranch) if('x32') +!GCC$ builtin (erfc) attributes simd (notinbranch) if('x32') +!GCC$ builtin (erfcf) attributes simd (notinbranch) if('x32') |