aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/x86/vf_eq.asm
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-11 01:37:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-22 13:36:31 +0200
commit77b2a422a09d1d801bebc3614f685fec0812963e (patch)
treeedb54c78f4207bbde2356cbcafb0b2630f453076 /libavfilter/x86/vf_eq.asm
parent81d347203166a37b605920873ca2b8f19473ff3f (diff)
downloadffmpeg-77b2a422a09d1d801bebc3614f685fec0812963e.tar.gz
avfilter/x86/vf_eq_init: 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 process_mmxext are truely ancient 32bit x86s it is removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/x86/vf_eq.asm')
-rw-r--r--libavfilter/x86/vf_eq.asm12
1 files changed, 2 insertions, 10 deletions
diff --git a/libavfilter/x86/vf_eq.asm b/libavfilter/x86/vf_eq.asm
index a30a287029..5118ffcba9 100644
--- a/libavfilter/x86/vf_eq.asm
+++ b/libavfilter/x86/vf_eq.asm
@@ -24,7 +24,7 @@
SECTION .text
-%macro PROCESS_ONE_LINE 1
+INIT_XMM sse2
cglobal process_one_line, 5, 7, 5, src, dst, contrast, brightness, w
movd m3, contrastd
movd m4, brightnessd
@@ -39,7 +39,7 @@ cglobal process_one_line, 5, 7, 5, src, dst, contrast, brightness, w
pxor m1, m1
mov scalard, wd
and scalard, mmsize-1
- sar wd, %1
+ sar wd, 4
cmp wd, 1
jl .loop1
@@ -80,11 +80,3 @@ cglobal process_one_line, 5, 7, 5, src, dst, contrast, brightness, w
.end:
RET
-
-%endmacro
-
-INIT_MMX mmxext
-PROCESS_ONE_LINE 3
-
-INIT_XMM sse2
-PROCESS_ONE_LINE 4