# HG changeset patch # User ramiro # Date 1244155838 0 # Node ID 880c5d014d37a32dc0b8c1b1c4ed60a8ca4d5c06 # Parent 5efc5acb0f7cb5d9ba13234da556a39fc118a518 Use DECLARE_ALIGNED macro instead of __attribute__((aligned)) for ppc code. diff -r 5efc5acb0f7c -r 880c5d014d37 libswscale/ppc/swscale_altivec_template.c --- a/libswscale/ppc/swscale_altivec_template.c Thu Jun 04 22:10:52 2009 +0000 +++ b/libswscale/ppc/swscale_altivec_template.c Thu Jun 04 22:50:38 2009 +0000 @@ -92,7 +92,7 @@ const vector signed int vini = {(1 << 18), (1 << 18), (1 << 18), (1 << 18)}; register int i, j; { - int __attribute__ ((aligned (16))) val[dstW]; + DECLARE_ALIGNED(16, int, val[dstW]); for (i = 0; i < (dstW -7); i+=4) { vec_st(vini, i << 2, val); @@ -140,8 +140,8 @@ altivec_packIntArrayToCharArray(val, dest, dstW); } if (uDest != 0) { - int __attribute__ ((aligned (16))) u[chrDstW]; - int __attribute__ ((aligned (16))) v[chrDstW]; + DECLARE_ALIGNED(16, int, u[chrDstW]); + DECLARE_ALIGNED(16, int, v[chrDstW]); for (i = 0; i < (chrDstW -7); i+=4) { vec_st(vini, i << 2, u); @@ -214,7 +214,7 @@ const int16_t *filterPos, int filterSize) { register int i; - int __attribute__ ((aligned (16))) tempo[4]; + DECLARE_ALIGNED(16, int, tempo[4]); if (filterSize % 4) { for (i=0; i