From 88bcb6c23f6d873b3cda84275dea0ab9e3b449b6 Mon Sep 17 00:00:00 2001 From: Guillaume Poirier Date: Thu, 17 May 2007 14:14:53 +0000 Subject: use macro Use DECLARE_ALIGNED_16 to align stack-allocated variables instead of compiler-dependent __attribute__((aligned(16))) Origiginal thread: Date: May 17, 2007 12:30 AM Subject: [PATCH] Use DECLARE_ALIGNED_16 in libavcodec/ppc/ Originally committed as revision 9047 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ppc/h264_altivec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/ppc/h264_altivec.c') diff --git a/libavcodec/ppc/h264_altivec.c b/libavcodec/ppc/h264_altivec.c index 963c6083ae..8602736480 100644 --- a/libavcodec/ppc/h264_altivec.c +++ b/libavcodec/ppc/h264_altivec.c @@ -180,7 +180,7 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc32_ ## CODETYPE(uint8_t *dst, uint /* this code assume that stride % 16 == 0 */ void put_no_rnd_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { - signed int ABCD[4] __attribute__((aligned(16))) = + DECLARE_ALIGNED_16(signed int, ABCD[4]) = {((8 - x) * (8 - y)), ((x) * (8 - y)), ((8 - x) * (y)), -- cgit v1.2.3