Commit acb015dd authored by mru's avatar mru

ARM: change MULH() macro to inline function

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15781 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2e7a5a87
......@@ -39,6 +39,7 @@ static inline av_const int MULL(int a, int b)
}
#endif
#define MULH MULH
#ifdef HAVE_ARMV6
static inline av_const int MULH(int a, int b)
{
......@@ -46,12 +47,13 @@ static inline av_const int MULH(int a, int b)
__asm__ ("smmul %0, %1, %2" : "=r"(r) : "r"(a), "r"(b));
return r;
}
#define MULH MULH
#else
#define MULH(a, b) \
({ int lo, hi;\
__asm__ ("smull %0, %1, %2, %3" : "=&r"(lo), "=&r"(hi) : "r"(b), "r"(a));\
hi; })
static inline av_const int MULH(int a, int b)
{
int lo, hi;
__asm__ ("smull %0, %1, %2, %3" : "=&r"(lo), "=&r"(hi) : "r"(b), "r"(a));
return hi;
}
#endif
static inline av_const int64_t MUL64(int a, int b)
......
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