diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-10 20:58:35 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-22 13:34:19 +0200 |
commit | 9426a2f8ff4607b7293e6140e56b8cc44e629dbd (patch) | |
tree | f491aba187e0a2dc3473e48e9a8bb93c94ac0ac1 /libavcodec/x86/svq1enc.asm | |
parent | 6feea076e98512d78c8d735509ab6b5e9a71ca1c (diff) | |
download | ffmpeg-9426a2f8ff4607b7293e6140e56b8cc44e629dbd.tar.gz |
avcodec/x86/svq1enc: Remove obsolete MMXEXT function
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 ff_ssd_int8_vs_int16_mmx are truely ancient
32bit x86s it is removed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/x86/svq1enc.asm')
-rw-r--r-- | libavcodec/x86/svq1enc.asm | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/libavcodec/x86/svq1enc.asm b/libavcodec/x86/svq1enc.asm index a87632836d..123e86ba24 100644 --- a/libavcodec/x86/svq1enc.asm +++ b/libavcodec/x86/svq1enc.asm @@ -23,39 +23,19 @@ SECTION .text -%macro SSD_INT8_VS_INT16 0 +INIT_XMM sse2 cglobal ssd_int8_vs_int16, 3, 3, 3, pix1, pix2, size pxor m0, m0 .loop: sub sizeq, 8 movq m1, [pix1q + sizeq] mova m2, [pix2q + sizeq*2] -%if mmsize == 8 - movq m3, [pix2q + sizeq*2 + mmsize] - punpckhbw m4, m1 - punpcklbw m1, m1 - psraw m4, 8 - psraw m1, 8 - psubw m3, m4 - psubw m2, m1 - pmaddwd m3, m3 - pmaddwd m2, m2 - paddd m0, m3 - paddd m0, m2 -%else punpcklbw m1, m1 psraw m1, 8 psubw m2, m1 pmaddwd m2, m2 paddd m0, m2 -%endif jg .loop HADDD m0, m1 movd eax, m0 RET -%endmacro - -INIT_MMX mmx -SSD_INT8_VS_INT16 -INIT_XMM sse2 -SSD_INT8_VS_INT16 |