diff options
author | Lynne <dev@lynne.ee> | 2022-05-21 01:39:12 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-05-21 02:11:50 +0200 |
commit | 27cffd16aadd04bf2311e3114b8aa81e3732552f (patch) | |
tree | b066e2956c0cd5bc0b848329963607c96ef1bc28 /libavutil/x86/tx_float.asm | |
parent | 0938ff97016884184796c3dd80bc6fcb729e875b (diff) | |
download | ffmpeg-27cffd16aadd04bf2311e3114b8aa81e3732552f.tar.gz |
x86/tx_float: replace fft_sr_avx with fft_sr_fma3
When the SLOW_GATHER flag was added to the AVX2 version, this
made FMA3-features not enabled on Zen CPUs.
As FMA3 adds 6-7% across all platforms that support it, in
the interest of saving space, this commit removes the AVX
version and replaces it with an FMA3 version.
The only CPUs affected are Sandy Bridge and Bulldozer, which
have AVX support, but no FMA3 support.
In the future, if there's a demand for it, a version of the
function duplicated for AVX can be added.
Diffstat (limited to 'libavutil/x86/tx_float.asm')
-rw-r--r-- | libavutil/x86/tx_float.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/x86/tx_float.asm b/libavutil/x86/tx_float.asm index 511d8d6fa3..21f99d3945 100644 --- a/libavutil/x86/tx_float.asm +++ b/libavutil/x86/tx_float.asm @@ -1285,8 +1285,8 @@ FFT_SPLIT_RADIX_DEF 131072 %endmacro %if ARCH_X86_64 -FFT_SPLIT_RADIX_FN avx, float, 0 -FFT_SPLIT_RADIX_FN avx, ns_float, 1 +FFT_SPLIT_RADIX_FN fma3, float, 0 +FFT_SPLIT_RADIX_FN fma3, ns_float, 1 %if HAVE_AVX2_EXTERNAL FFT_SPLIT_RADIX_FN avx2, float, 0 FFT_SPLIT_RADIX_FN avx2, ns_float, 1 |