From 5e4c7ca224417902dd714f4f50500b36b8c89148 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Mon, 13 Aug 2007 15:28:29 +0000 Subject: =?UTF-8?q?Add=20attribute=20that=20forces=20alignment=20of=20stac?= =?UTF-8?q?k=20to=20functions=20that=20need=20it.=20Necessary=20for=20syst?= =?UTF-8?q?ems=20that=20don't=20align=20by=20default=20to=2016=20bytes,=20?= =?UTF-8?q?required=20by=20some=20SSE=20instructions.=20Requires=20GCC=20>?= =?UTF-8?q?=3D=204.2.=20Based=20on=20patch=20by=20Ga=C3=ABl=20Chardon.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 10106 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavutil') diff --git a/libavutil/internal.h b/libavutil/internal.h index e8dc72e..337f297 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -34,6 +34,14 @@ #include #include +#ifndef attribute_align_arg +#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__>1) +# define attribute_align_arg __attribute__((force_align_arg_pointer)) +#else +# define attribute_align_arg +#endif +#endif + #ifndef attribute_used #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) # define attribute_used __attribute__((used)) -- cgit v1.1