[FFmpeg-cvslog] r14242 - trunk/libavutil/internal.h
mru
subversion
Tue Jul 15 21:06:22 CEST 2008
Author: mru
Date: Tue Jul 15 21:06:18 2008
New Revision: 14242
Log:
ARM: ARMv6 optimised FASTDIV
Modified:
trunk/libavutil/internal.h
Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h (original)
+++ trunk/libavutil/internal.h Tue Jul 15 21:06:18 2008
@@ -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) \
({\
More information about the ffmpeg-cvslog
mailing list