[FFmpeg-cvslog] r14244 - trunk/libavcodec/armv4l/mathops.h

mru subversion
Tue Jul 15 21:06:29 CEST 2008


Author: mru
Date: Tue Jul 15 21:06:29 2008
New Revision: 14244

Log:
ARM: optimised MUL64

Modified:
   trunk/libavcodec/armv4l/mathops.h

Modified: trunk/libavcodec/armv4l/mathops.h
==============================================================================
--- trunk/libavcodec/armv4l/mathops.h	(original)
+++ trunk/libavcodec/armv4l/mathops.h	Tue Jul 15 21:06:29 2008
@@ -48,6 +48,15 @@ static inline av_const int MULH(int a, i
      hi; })
 #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)
 
 /* signed 16x16 -> 32 multiply add accumulate */




More information about the ffmpeg-cvslog mailing list