summaryrefslogtreecommitdiff
path: root/vp8/common/x86
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@google.com>2012-06-25 11:23:09 -0700
committerYaowu Xu <yaowu@google.com>2012-06-25 14:16:39 -0700
commit9c9d6743d460da1bfb88af66bf43597ae6927af3 (patch)
tree0542f61f421f7f6322bf3b65e400d26760306310 /vp8/common/x86
parent9a6972c8920ad30e163cab89b8e9b4d06f0a0d85 (diff)
downloadlibvpx-9c9d6743d460da1bfb88af66bf43597ae6927af3.tar
libvpx-9c9d6743d460da1bfb88af66bf43597ae6927af3.tar.gz
libvpx-9c9d6743d460da1bfb88af66bf43597ae6927af3.tar.bz2
libvpx-9c9d6743d460da1bfb88af66bf43597ae6927af3.zip
Sign-extend input argument so it can be used in pointer arithmetic.
Change-Id: I6cbd4de96f9dcc783cef170bfd7652f6cbee36a2
Diffstat (limited to 'vp8/common/x86')
-rw-r--r--vp8/common/x86/idctllm_mmx.asm7
1 files changed, 6 insertions, 1 deletions
diff --git a/vp8/common/x86/idctllm_mmx.asm b/vp8/common/x86/idctllm_mmx.asm
index 815ee8eb9..15e81addb 100644
--- a/vp8/common/x86/idctllm_mmx.asm
+++ b/vp8/common/x86/idctllm_mmx.asm
@@ -196,7 +196,12 @@ cglobal short_idct4x4llm_1_mmx,3,3,0,inp,out,pit
;void dc_only_idct_add_mmx(short input_dc, unsigned char *pred_ptr, unsigned char *dst_ptr, int pitch, int stride)
-cglobal dc_only_idct_add_mmx, 5,5,0,in_dc,pred,dst,pit,stride
+cglobal dc_only_idct_add_mmx, 4,5,0,in_dc,pred,dst,pit,stride
+%if ARCH_X86_64
+ movsxd strideq, dword stridem
+%else
+ mov strideq, stridem
+%endif
pxor m0, m0
movh m5, in_dcq ; dc