[Mplayer-cvslog] CVS: main/libmpeg2 attributes.h,1.5,1.6
Ivan Kalvachev CVS
syncmail at mplayerhq.hu
Wed Aug 25 15:09:58 CEST 2004
CVS change done by Ivan Kalvachev CVS
Update of /cvsroot/mplayer/main/libmpeg2
In directory mail:/var2/tmp/cvs-serv26523
Modified Files:
attributes.h
Log Message:
allow alignment without ATTRIBUTE_ALIGNED_MAX been defined, it fixes sparc unaligned memory access
Index: attributes.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/attributes.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- attributes.h 2 Aug 2004 11:20:38 -0000 1.5
+++ attributes.h 25 Aug 2004 13:09:56 -0000 1.6
@@ -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
More information about the MPlayer-cvslog
mailing list