ARM: set STRIDE_ALIGN and DECLARE_ALIGNED_8 to 16 for NEON
authorMåns Rullgård <mans@mansr.com>
Mon, 25 Aug 2008 01:59:06 +0000 (01:59 +0000)
committerMåns Rullgård <mans@mansr.com>
Mon, 25 Aug 2008 01:59:06 +0000 (01:59 +0000)
Originally committed as revision 14961 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dsputil.h

index 9e46deab2d22cada1dd1223622adf72b24f56e0c..4b7e8ed4a4149dbbffce5e9cbe887f015f29a8dc 100644 (file)
@@ -591,6 +591,11 @@ void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx);
 
 extern int mm_flags;
 
 
 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 */
 #elif defined(ARCH_POWERPC)
 
 #define MM_ALTIVEC    0x0001 /* standard AltiVec */