summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-08-25 01:59:06 +0000
committerMåns Rullgård <mans@mansr.com>2008-08-25 01:59:06 +0000
commitf1424cfd6dcfaf1d0d70ff1518710ccd3e5eac5d (patch)
tree05777a96479c8124ee1fb99d3b44724fb1dd427a /libavcodec/dsputil.h
parent244ee48a8273faf28c95de617631137b2e0984ef (diff)
ARM: set STRIDE_ALIGN and DECLARE_ALIGNED_8 to 16 for NEON
Originally committed as revision 14961 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 9e46deab2d..4b7e8ed4a4 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -591,6 +591,11 @@ void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx);
extern int mm_flags;
+#ifdef HAVE_NEON
+# define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v)
+# define STRIDE_ALIGN 16
+#endif
+
#elif defined(ARCH_POWERPC)
#define MM_ALTIVEC 0x0001 /* standard AltiVec */