# HG changeset patch # User iive # Date 1093439396 0 # Node ID f283e0e499bffd5d258496fee9062e9b1bcf089f # Parent d1e1de3164599c0c868b0c88174c1a45e0715a2b allow alignment without ATTRIBUTE_ALIGNED_MAX been defined, it fixes sparc unaligned memory access diff -r d1e1de316459 -r f283e0e499bf libmpeg2/attributes.h --- a/libmpeg2/attributes.h Wed Aug 25 09:49:43 2004 +0000 +++ b/libmpeg2/attributes.h Wed Aug 25 13:09:56 2004 +0000 @@ -25,7 +25,7 @@ #ifdef ATTRIBUTE_ALIGNED_MAX #define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align))) #else -#define ATTR_ALIGN(align) +#define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((16 < align) ? 16 : align))) #endif #ifdef HAVE_BUILTIN_EXPECT