aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-07-15 19:06:18 +0000
committerMåns Rullgård <mans@mansr.com>2008-07-15 19:06:18 +0000
commit6651ce17b82a800e20e18b38d006c47a07413464 (patch)
tree61985d49dadd35167d496f9ad30797e717f59f43 /libavutil
parentde0e19cc38f876f8cb7bd145b9c5e6edeef55925 (diff)
downloadffmpeg-6651ce17b82a800e20e18b38d006c47a07413464.tar.gz
ARM: ARMv6 optimised FASTDIV
Originally committed as revision 14242 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 8bf57061ec..ce4983bb2b 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -154,6 +154,13 @@ extern const uint32_t ff_inverse[256];
);\
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)
# define FASTDIV(a,b) \
({\