Mercurial > libavcodec.hg
changeset 10112:e3fc952dd4b2 libavcodec
Make DECLARE_ALIGNED_8 align to 8 bytes, never to 16
The DECLARE_ALIGNED_8 macro is defined to align to 16 bytes instead
the 8 suggested by the name on some CPUs. None of the uses of this
macro ever need 16-byte alignment, cases which once did having been
changed to always specify 16 bytes explicitly.
author | mru |
---|---|
date | Fri, 28 Aug 2009 23:39:02 +0000 |
parents | ebe5812b39a7 |
children | 4b99f60333ca |
files | dsputil.h |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dsputil.h Fri Aug 28 00:57:00 2009 +0000 +++ b/dsputil.h Fri Aug 28 23:39:02 2009 +0000 @@ -640,7 +640,6 @@ extern int mm_flags; #if HAVE_NEON -# define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) # define STRIDE_ALIGN 16 #endif @@ -648,12 +647,10 @@ extern int mm_flags; -#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) #define STRIDE_ALIGN 16 #elif HAVE_MMI -#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) #define STRIDE_ALIGN 16 #else @@ -663,9 +660,7 @@ #endif -#ifndef DECLARE_ALIGNED_8 # define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) -#endif #ifndef STRIDE_ALIGN # define STRIDE_ALIGN 8