mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/x86/synth_filter: Remove obsolete SSE function
The only systems which benefit from synth_filter_sse are truely ancient 32bit x86s as all other systems use at least the SSE2 versions (this includes all x64 cpus (which is why this code is restricted to x86-32)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
54784ffac5
commit
eb33fd384e
@ -115,7 +115,7 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
|
||||
synth_buf, synth_buf2, window, out, off, scale
|
||||
%define scale m0
|
||||
%if ARCH_X86_32 || WIN64
|
||||
%if cpuflag(sse2) && notcpuflag(avx)
|
||||
%if notcpuflag(avx)
|
||||
movd scale, scalem
|
||||
SPLATD m0
|
||||
%else
|
||||
@ -234,10 +234,6 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
|
||||
RET
|
||||
%endmacro
|
||||
|
||||
%if ARCH_X86_32
|
||||
INIT_XMM sse
|
||||
SYNTH_FILTER
|
||||
%endif
|
||||
INIT_XMM sse2
|
||||
SYNTH_FILTER
|
||||
INIT_YMM avx
|
||||
|
@ -43,9 +43,6 @@ static void synth_filter_##opt(FFTContext *imdct, \
|
||||
} \
|
||||
|
||||
#if HAVE_X86ASM
|
||||
#if ARCH_X86_32
|
||||
SYNTH_FILTER_FUNC(sse)
|
||||
#endif
|
||||
SYNTH_FILTER_FUNC(sse2)
|
||||
SYNTH_FILTER_FUNC(avx)
|
||||
SYNTH_FILTER_FUNC(fma3)
|
||||
@ -56,11 +53,6 @@ av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)
|
||||
#if HAVE_X86ASM
|
||||
int cpu_flags = av_get_cpu_flags();
|
||||
|
||||
#if ARCH_X86_32
|
||||
if (EXTERNAL_SSE(cpu_flags)) {
|
||||
s->synth_filter_float = synth_filter_sse;
|
||||
}
|
||||
#endif
|
||||
if (EXTERNAL_SSE2(cpu_flags)) {
|
||||
s->synth_filter_float = synth_filter_sse2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user