aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-08-13 21:45:36 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-08-13 21:45:36 +0000
commit3d03c0a24ec27fb7e5387012e170dce00535c110 (patch)
treeb6101194d5b5625ea5d10b286117bb1df0b43945 /libavcodec/dsputil.h
parentbdc4796fae585a2316a0d201d287fd6493b838ba (diff)
downloadffmpeg-3d03c0a24ec27fb7e5387012e170dce00535c110.tar.gz
arm optimizations
Originally committed as revision 82 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 14613adba2..80a934ccdb 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -2,7 +2,6 @@
#define DSPUTIL_H
#include "common.h"
-#include <inttypes.h>
/* dct code */
typedef short DCTELEM;
@@ -75,7 +74,7 @@ static inline int block_permute_op(int j)
void block_permute(INT16 *block);
-#ifdef HAVE_MMX
+#if defined(HAVE_MMX)
#define MM_MMX 0x0001 /* standard MMX */
#define MM_3DNOW 0x0004 /* AMD 3DNOW */
@@ -102,6 +101,16 @@ static inline void emms(void)
void dsputil_init_mmx(void);
+#elif defined(ARCH_ARMV4L)
+
+#define emms_c()
+
+/* This is to use 4 bytes read to the IDCT pointers for some 'zero'
+ line ptimizations */
+#define __align8 __attribute__ ((aligned (4)))
+
+void dsputil_init_armv4l(void);
+
#else
#define emms_c()