aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/rv34dsp.asm
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-06 00:16:13 +0100
committerMans Rullgard <mans@mansr.com>2012-08-07 15:21:20 +0100
commit2b140a3d091de2bd54687df1b2aa6608549fb6ee (patch)
tree94a81581441df6d8c905f5802884738ff13fef0f /libavcodec/x86/rv34dsp.asm
parenta3df4781f40869cd7766f46221412039cf54c1b7 (diff)
downloadffmpeg-2b140a3d091de2bd54687df1b2aa6608549fb6ee.tar.gz
x86: use 32-bit source registers with movd instruction
yasm tolerates mismatch between movd/movq and source register size, adjusting the instruction according to the register. nasm is more strict. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86/rv34dsp.asm')
-rw-r--r--libavcodec/x86/rv34dsp.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/x86/rv34dsp.asm b/libavcodec/x86/rv34dsp.asm
index c43b77abd2..78d8c92b0b 100644
--- a/libavcodec/x86/rv34dsp.asm
+++ b/libavcodec/x86/rv34dsp.asm
@@ -49,7 +49,7 @@ SECTION .text
cglobal rv34_idct_%1, 1, 2, 0
movsx r1, word [r0]
IDCT_DC r1
- movd m0, r1
+ movd m0, r1d
pshufw m0, m0, 0
movq [r0+ 0], m0
movq [r0+ 8], m0
@@ -70,7 +70,7 @@ cglobal rv34_idct_dc_add, 3, 3
; calculate DC
IDCT_DC_ROUND r2
pxor m1, m1
- movd m0, r2
+ movd m0, r2d
psubw m1, m0
packuswb m0, m0
packuswb m1, m1
@@ -175,7 +175,7 @@ cglobal rv34_idct_dc_add, 3, 3, 6
pxor m1, m1
; calculate DC
- movd m0, r2
+ movd m0, r2d
lea r2, [r0+r1*2]
movd m2, [r0]
movd m3, [r0+r1]