Mercurial > mplayer.hg
diff libswscale/ppc/yuv2rgb_altivec.c @ 29308:880c5d014d37
Use DECLARE_ALIGNED macro instead of __attribute__((aligned)) for ppc code.
author | ramiro |
---|---|
date | Thu, 04 Jun 2009 22:50:38 +0000 |
parents | 882a1f5613e1 |
children | c812ae703e3d |
line wrap: on
line diff
--- a/libswscale/ppc/yuv2rgb_altivec.c Thu Jun 04 22:10:52 2009 +0000 +++ b/libswscale/ppc/yuv2rgb_altivec.c Thu Jun 04 22:50:38 2009 +0000 @@ -753,7 +753,7 @@ 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 @@ 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;