From 594de0a0dd709ce7e04209474734954592530572 Mon Sep 17 00:00:00 2001 From: ramiro Date: Thu, 4 Jun 2009 22:50:38 +0000 Subject: Use DECLARE_ALIGNED macro instead of __attribute__((aligned)) for ppc code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29350 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/ppc/yuv2rgb_altivec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libswscale/ppc/yuv2rgb_altivec.c') diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c index 43879ea62d..550afc4023 100644 --- a/libswscale/ppc/yuv2rgb_altivec.c +++ b/libswscale/ppc/yuv2rgb_altivec.c @@ -753,7 +753,7 @@ SwsFunc ff_yuv2rgb_init_altivec(SwsContext *c) void ff_yuv2rgb_init_tables_altivec(SwsContext *c, const int inv_table[4], int brightness, int contrast, int saturation) { union { - signed short tmp[8] __attribute__ ((aligned(16))); + DECLARE_ALIGNED(16, signed short, tmp[8]); vector signed short vec; } buf; @@ -800,7 +800,7 @@ ff_yuv2packedX_altivec(SwsContext *c, vector signed short RND = vec_splat_s16(1<<3); vector unsigned short SCL = vec_splat_u16(4); - unsigned long scratch[16] __attribute__ ((aligned (16))); + DECLARE_ALIGNED(16, unsigned long, scratch[16]); vector signed short *YCoeffs, *CCoeffs; -- cgit v1.2.3