changeset 3607:997036dffa26 libavcodec

fix arm asm compilation in mpegaudiodec
author aurel
date Wed, 23 Aug 2006 23:39:27 +0000
parents e28285ddde8d
children f713d34d5d01
files mpegaudiodec.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Tue Aug 22 16:23:56 2006 +0000
+++ b/mpegaudiodec.c	Wed Aug 23 23:39:27 2006 +0000
@@ -59,13 +59,13 @@
 #   define MULL(a, b) \
         ({  int lo, hi;\
             asm("smull %0, %1, %2, %3     \n\t"\
-                "mov   %0, %0,     lsr #%4\n\t"\
-                "add   %1, %0, %1, lsl #%5\n\t"\
-            : "=r"(lo), "=r"(hi)\
+                "mov   %0, %0,     lsr %4\n\t"\
+                "add   %1, %0, %1, lsl %5\n\t"\
+            : "=&r"(lo), "=&r"(hi)\
             : "r"(b), "r"(a), "i"(FRAC_BITS), "i"(32-FRAC_BITS));\
          hi; })
 #   define MUL64(a,b) ((int64_t)(a) * (int64_t)(b))
-#   define MULH(a, b) ({ int lo, hi; asm ("smull %0, %1, %2, %3" : "=r"(lo), "=r"(hi) : "r"(b),"r"(a)); hi; })
+#   define MULH(a, b) ({ int lo, hi; asm ("smull %0, %1, %2, %3" : "=&r"(lo), "=&r"(hi) : "r"(b), "r"(a)); hi; })
 #else
 #   define MULL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS)
 #   define MUL64(a,b) ((int64_t)(a) * (int64_t)(b))