[MPlayer-dev-eng] [PATCH] fix memory alignment on sparc

jb13 at gomerbud.com jb13 at gomerbud.com
Fri Aug 20 00:55:27 CEST 2004


this patch fixes memory alignment on sparc and posebly other arches

from iive on #mplayerdev
-------------- next part --------------
Index: attributes.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/attributes.h,v
retrieving revision 1.5
diff -u -r1.5 attributes.h
--- attributes.h	2 Aug 2004 11:20:38 -0000	1.5
+++ attributes.h	19 Aug 2004 22:30:47 -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)))
 #endif
 
 #ifdef HAVE_BUILTIN_EXPECT


More information about the MPlayer-dev-eng mailing list