diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-20 07:20:40 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-22 13:40:49 +0200 |
commit | 230ea38de143368729ee1cce47b3a87fbafad8e4 (patch) | |
tree | 60d661edbb7f107150e92dd0f6e13bc073d2eb5d /libavcodec | |
parent | 839fbe0e98881f020e41dc7151d08f2ccb314398 (diff) | |
download | ffmpeg-230ea38de143368729ee1cce47b3a87fbafad8e4.tar.gz |
avcodec/x86/lossless_videoencdsp: Remove obsolete MMX function
The only systems which benefit from ff_diff_bytes_mmx 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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/x86/lossless_videoencdsp.asm | 9 | ||||
-rw-r--r-- | libavcodec/x86/lossless_videoencdsp_init.c | 6 |
2 files changed, 0 insertions, 15 deletions
diff --git a/libavcodec/x86/lossless_videoencdsp.asm b/libavcodec/x86/lossless_videoencdsp.asm index fb1204f0f1..2e1d01bc2c 100644 --- a/libavcodec/x86/lossless_videoencdsp.asm +++ b/libavcodec/x86/lossless_videoencdsp.asm @@ -113,15 +113,6 @@ cglobal diff_bytes, 4,5,2, dst, src1, src2, w REP_RET %endmacro -%if ARCH_X86_32 -INIT_MMX mmx -DIFF_BYTES_PROLOGUE - %define regsize mmsize - DIFF_BYTES_LOOP_PREP .skip_main_aa, .end_aa - DIFF_BYTES_BODY a, a -%undef i -%endif - INIT_XMM sse2 DIFF_BYTES_PROLOGUE %define regsize mmsize diff --git a/libavcodec/x86/lossless_videoencdsp_init.c b/libavcodec/x86/lossless_videoencdsp_init.c index 40407add52..b3efcfdcd7 100644 --- a/libavcodec/x86/lossless_videoencdsp_init.c +++ b/libavcodec/x86/lossless_videoencdsp_init.c @@ -29,8 +29,6 @@ #include "libavcodec/lossless_videoencdsp.h" #include "libavcodec/mathops.h" -void ff_diff_bytes_mmx(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, - intptr_t w); void ff_diff_bytes_sse2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, intptr_t w); void ff_diff_bytes_avx2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, @@ -87,10 +85,6 @@ av_cold void ff_llvidencdsp_init_x86(LLVidEncDSPContext *c) { av_unused int cpu_flags = av_get_cpu_flags(); - if (ARCH_X86_32 && EXTERNAL_MMX(cpu_flags)) { - c->diff_bytes = ff_diff_bytes_mmx; - } - #if HAVE_INLINE_ASM if (INLINE_MMXEXT(cpu_flags)) { c->sub_median_pred = sub_median_pred_mmxext; |