Commit fef5baea authored by mru's avatar mru

ARM: ARMv6 optimised FASTDIV

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14242 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 09932dce
...@@ -154,6 +154,13 @@ extern const uint32_t ff_inverse[256]; ...@@ -154,6 +154,13 @@ extern const uint32_t ff_inverse[256];
);\ );\
ret;\ ret;\
}) })
#elif defined(HAVE_ARMV6)
static inline av_const int FASTDIV(int a, int b)
{
int r;
asm volatile("smmul %0, %1, %2" : "=r"(r) : "r"(a), "r"(ff_inverse[b]));
return r;
}
#elif defined(ARCH_ARMV4L) #elif defined(ARCH_ARMV4L)
# define FASTDIV(a,b) \ # define FASTDIV(a,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