History

swresample/x86/audio_convert: Remove obsolete MMX functions

x64 always has MMX, MMXEXT, SSE and SSE2 and this means that some functions for MMX, MMXEXT and 3dnow are always overridden by other functions (unless one e.g. explicitly disables SSE2) for x64. So given that the only systems that benefit from these functions are truely ancient 32bit x86s they are removed.

Andreas Rheinhardt committed 4 years ago

Commit 2b94f231 parent 55fc2c52 files · +1 −17Browse files

Unified · Split

2 files
  1. libswresample/x86/audio_convert.asm +0 −9
  2. libswresample/x86/audio_convert_init.c +1 −8
libswresample/x86/audio_convert.asm+0−9
@@ -608,15 +608,6 @@ pack_8ch_%2_to_%1_u_int %+ SUFFIX: · 607 unmodified lines
608608 %macro NOP_N 0-6
609609 %endmacro
610610
611−INIT_MMX mmx
612−CONV int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N
613−CONV int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N
614−CONV int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N
615−CONV int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N
616−
617−PACK_6CH float, float, u, 2, 2, 0, NOP_N, NOP_N
618−PACK_6CH float, float, a, 2, 2, 0, NOP_N, NOP_N
619−
620611 INIT_XMM sse
621612 PACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N
622613 PACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N
libswresample/x86/audio_convert_init.c+1−8
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #define PROTO(pre, in, out, cap) void ff ## pre ## in## _to_ ##out## _a_ ##cap(uint8_t **dst, const uint8_t **src, int len);
2727 #define PROTO2(pre, out, cap) PROTO(pre, int16, out, cap) PROTO(pre, int32, out, cap) PROTO(pre, float, out, cap)
2828 #define PROTO3(pre, cap) PROTO2(pre, int16, cap) PROTO2(pre, int32, cap) PROTO2(pre, float, cap)
29−#define PROTO4(pre) PROTO3(pre, mmx) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx) PROTO3(pre, avx2)
29+#define PROTO4(pre) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx) PROTO3(pre, avx2)
3030 PROTO4(_)
3131 PROTO4(_pack_2ch_)
3232 PROTO4(_pack_6ch_)
@@ -52,15 +52,8 @@ av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac, · 19 unmodified lines
5252 ac->simd_f = ff_int32_to_int16_a_ ## cap;\
5353 }
5454
55−MULTI_CAPS_FUNC(MMX, mmx)
5655 MULTI_CAPS_FUNC(SSE2, sse2)
5756
58− if(EXTERNAL_MMX(mm_flags)) {
59− if(channels == 6) {
60− if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_FLTP || out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S32P)
61− ac->simd_f = ff_pack_6ch_float_to_float_a_mmx;
62− }
63− }
6457 if(EXTERNAL_SSE(mm_flags)) {
6558 if(channels == 6) {
6659 if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_FLTP || out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S32P)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t