x64 always has MMX, MMXEXT, SSE and SSE2 and this means that some functions for MMX, MMXEXT, SSE and 3dnow are always overridden by other functions (unless one e.g. explicitly disables SSE2). So given that the only systems which benefit from the MMXEXT resamplers (which are overridden by SSE2) are truely ancient 32bit x86s they are removed.
Unified · Split
| @@ -594,11 +594,6 @@ INIT_XMM fma4 · 593 unmodified lines | |||
| 594 | RESAMPLE_FNS float, 4, 2, s, pf_1 | 594 | RESAMPLE_FNS float, 4, 2, s, pf_1 |
| 595 | %endif | 595 | %endif |
| 596 | 596 | ||
| 597 | %if ARCH_X86_32 | ||
| 598 | INIT_MMX mmxext | ||
| 599 | RESAMPLE_FNS int16, 2, 1 | ||
| 600 | %endif | ||
| 601 | |||
| 602 | INIT_XMM sse2 | 597 | INIT_XMM sse2 |
| 603 | RESAMPLE_FNS int16, 2, 1 | 598 | RESAMPLE_FNS int16, 2, 1 |
| 604 | %if HAVE_XOP_EXTERNAL | 599 | %if HAVE_XOP_EXTERNAL |
| @@ -35,7 +35,6 @@ int ff_resample_common_##type##_##opt(ResampleContext *c, void *dst, \ · 34 unmodified lines | |||
| 35 | int ff_resample_linear_##type##_##opt(ResampleContext *c, void *dst, \ | 35 | int ff_resample_linear_##type##_##opt(ResampleContext *c, void *dst, \ |
| 36 | const void *src, int sz, int upd) | 36 | const void *src, int sz, int upd) |
| 37 | 37 | ||
| 38 | RESAMPLE_FUNCS(int16, mmxext); | ||
| 39 | RESAMPLE_FUNCS(int16, sse2); | 38 | RESAMPLE_FUNCS(int16, sse2); |
| 40 | RESAMPLE_FUNCS(int16, xop); | 39 | RESAMPLE_FUNCS(int16, xop); |
| 41 | RESAMPLE_FUNCS(float, sse); | 40 | RESAMPLE_FUNCS(float, sse); |
| @@ -52,10 +51,6 @@ av_cold void swri_resample_dsp_x86_init(ResampleContext *c) · 10 unmodified lines | |||
| 52 | 51 | ||
| 53 | switch(c->format){ | 52 | switch(c->format){ |
| 54 | case AV_SAMPLE_FMT_S16P: | 53 | case AV_SAMPLE_FMT_S16P: |
| 55 | if (ARCH_X86_32 && EXTERNAL_MMXEXT(mm_flags)) { | ||
| 56 | c->dsp.resample_linear = ff_resample_linear_int16_mmxext; | ||
| 57 | c->dsp.resample_common = ff_resample_common_int16_mmxext; | ||
| 58 | } | ||
| 59 | if (EXTERNAL_SSE2(mm_flags)) { | 54 | if (EXTERNAL_SSE2(mm_flags)) { |
| 60 | c->dsp.resample_linear = ff_resample_linear_int16_sse2; | 55 | c->dsp.resample_linear = ff_resample_linear_int16_sse2; |
| 61 | c->dsp.resample_common = ff_resample_common_int16_sse2; | 56 | c->dsp.resample_common = ff_resample_common_int16_sse2; |