changeset 12297:be9129c5503e libavcodec

Fix compilation in x86_64. I broke it with r24580.
author vitor
date Thu, 29 Jul 2010 22:45:21 +0000
parents 34d95bdfd38c
children bfc36c0fea55
files x86/idct_mmx.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/x86/idct_mmx.c	Thu Jul 29 22:19:54 2010 +0000
+++ b/x86/idct_mmx.c	Thu Jul 29 22:45:21 2010 +0000
@@ -194,7 +194,7 @@
 
         "movq       8(%3), %%mm4       \n\t" /* mm4 = C6 C4 C6 C4 */
         "pshufw     $0x4e, %%mm2, %%mm2\n\t" /* mm2 = x2 x0 x6 x4 */
-        :: "r" (row), "r" (2*offset), "r" (2*store), "r" (table)
+        :: "r" (row), "r" ((x86_reg) (2*offset)), "r" ((x86_reg) (2*store)), "r" (table)
         );
 }
 
@@ -337,7 +337,7 @@
 
         "movq      %%mm7, 8(%0,%2) \n\t" /* save y7 y6 y5 y4 */
         "pmaddwd   %%mm0, %%mm3    \n\t" /* mm3 = C4*x0+C6*x2 C4*x0+C2*x2 */
-        : : "r" (row), "r"(2*offset), "r" (2*store), "r" (table)
+        : : "r" (row), "r" ((x86_reg) (2*offset)), "r" ((x86_reg) (2*store)), "r" (table)
         );
 }