Commit b735fb0c authored by mru's avatar mru

ARM: optimised MUL64

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14244 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 43a8c201
...@@ -48,6 +48,15 @@ static inline av_const int MULH(int a, int b) ...@@ -48,6 +48,15 @@ static inline av_const int MULH(int a, int b)
hi; }) hi; })
#endif #endif
static inline av_const int64_t MUL64(int a, int b)
{
union { uint64_t x; unsigned hl[2]; } x;
asm ("smull %0, %1, %2, %3"
: "=r"(x.hl[0]), "=r"(x.hl[1]) : "r"(a), "r"(b));
return x.x;
}
#define MUL64 MUL64
#if defined(HAVE_ARMV5TE) #if defined(HAVE_ARMV5TE)
/* signed 16x16 -> 32 multiply add accumulate */ /* signed 16x16 -> 32 multiply add accumulate */
......
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