ARM: remove MULL inline asm
authorMans Rullgard <mans@mansr.com>
Sat, 4 Jun 2011 20:16:04 +0000 (21:16 +0100)
committerMans Rullgard <mans@mansr.com>
Sat, 4 Jun 2011 20:33:23 +0000 (21:33 +0100)
Reasonable gcc versions get this one right on their own.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/arm/mathops.h

index 7c2acca..3870fce 100644 (file)
 
 #if HAVE_INLINE_ASM
 
-#   define MULL MULL
-static inline av_const int MULL(int a, int b, unsigned shift)
-{
-    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)
-            : "r"(b), "r"(a), "ir"(shift), "ir"(32-shift));
-    return hi;
-}
-
 #define MULH MULH
 #define MUL64 MUL64