changeset 3578:e0fb0ff7c6a8 libavcodec

Fix building with --disable-opts but MMX enabled. patch by Marco Manfredini mldb %at% gmx %dot% net
author diego
date Sun, 13 Aug 2006 10:10:06 +0000
parents 5be5a936c8a9
children df07afe83a62
files i386/mmx.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/i386/mmx.h	Sun Aug 13 08:26:43 2006 +0000
+++ b/i386/mmx.h	Sun Aug 13 10:10:06 2006 +0000
@@ -184,16 +184,16 @@
 #define         mmx_m2ri(op,mem,reg,imm) \
         __asm__ __volatile__ (#op " %1, %0, %%" #reg \
                               : /* nothing */ \
-                              : "X" (mem), "X" (imm))
+                              : "m" (mem), "i" (imm))
 #define         mmx_r2ri(op,regs,regd,imm) \
         __asm__ __volatile__ (#op " %0, %%" #regs ", %%" #regd \
                               : /* nothing */ \
-                              : "X" (imm) )
+                              : "i" (imm) )
 
 #define         mmx_fetch(mem,hint) \
         __asm__ __volatile__ ("prefetch" #hint " %0" \
                               : /* nothing */ \
-                              : "X" (mem))
+                              : "m" (mem))
 
 
 #define         maskmovq(regs,maskreg)      mmx_r2ri (maskmovq, regs, maskreg)