aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/vp3dsp.asm
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-08-23 23:19:30 +0200
committerDiego Biurrun <diego@biurrun.de>2016-08-26 11:36:26 +0200
commit6892df9294d93322d43255ada299507465bc93c8 (patch)
tree0863d2a8f4e13a7db2d5a623b9036e5d86a24bc8 /libavcodec/x86/vp3dsp.asm
parent963b3ab11f98fcc4a311f0dc7b268890c5675da2 (diff)
downloadffmpeg-6892df9294d93322d43255ada299507465bc93c8.tar.gz
vp3: Change type of stride parameters to ptrdiff_t
This avoids SIMD-optimized functions having to sign-extend their stride argument manually to be able to do pointer arithmetic. Also adjust parameter names to be "stride" everywhere.
Diffstat (limited to 'libavcodec/x86/vp3dsp.asm')
-rw-r--r--libavcodec/x86/vp3dsp.asm11
1 files changed, 0 insertions, 11 deletions
diff --git a/libavcodec/x86/vp3dsp.asm b/libavcodec/x86/vp3dsp.asm
index fc8a047224..8587741f95 100644
--- a/libavcodec/x86/vp3dsp.asm
+++ b/libavcodec/x86/vp3dsp.asm
@@ -104,9 +104,6 @@ SECTION .text
INIT_MMX mmxext
cglobal vp3_v_loop_filter, 3, 4
-%if ARCH_X86_64
- movsxd r1, r1d
-%endif
mov r3, r1
neg r1
movq m6, [r0+r1*2]
@@ -121,9 +118,6 @@ cglobal vp3_v_loop_filter, 3, 4
RET
cglobal vp3_h_loop_filter, 3, 4
-%if ARCH_X86_64
- movsxd r1, r1d
-%endif
lea r3, [r1*3]
movd m6, [r0 -2]
@@ -525,7 +519,6 @@ cglobal vp3_h_loop_filter, 3, 4
cglobal vp3_idct_put, 3, 4, 9
VP3_IDCT r2
- movsxdifnidn r1, r1d
mova m4, [pb_80]
lea r3, [r1*3]
%assign %%i 0
@@ -582,7 +575,6 @@ cglobal vp3_idct_put, 3, 4, 9
cglobal vp3_idct_add, 3, 4, 9
VP3_IDCT r2
- movsxdifnidn r1, r1d
lea r3, [r1*3]
pxor m4, m4
%if mmsize == 16
@@ -689,9 +681,6 @@ vp3_idct_funcs
INIT_MMX mmxext
cglobal vp3_idct_dc_add, 3, 4
-%if ARCH_X86_64
- movsxd r1, r1d
-%endif
movsx r3, word [r2]
mov word [r2], 0
lea r2, [r1*3]