Commit 594fbe42 authored by Mans Rullgard's avatar Mans Rullgard

ARM: remove MULL inline asm

Reasonable gcc versions get this one right on their own.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 95912731
......@@ -28,18 +28,6 @@
#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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment