diff options
author | ramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-04 22:50:38 +0000 |
---|---|---|
committer | ramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-04 22:50:38 +0000 |
commit | 594de0a0dd709ce7e04209474734954592530572 (patch) | |
tree | d3519e22ed62a17197fae6de7e7a3cf2cb4a400e /libswscale/ppc/swscale_altivec_template.c | |
parent | 0318aa32cf84938038af1ca8e31030d09194075b (diff) | |
download | mpv-594de0a0dd709ce7e04209474734954592530572.tar.bz2 mpv-594de0a0dd709ce7e04209474734954592530572.tar.xz |
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
Diffstat (limited to 'libswscale/ppc/swscale_altivec_template.c')
-rw-r--r-- | libswscale/ppc/swscale_altivec_template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/ppc/swscale_altivec_template.c b/libswscale/ppc/swscale_altivec_template.c index c24970464c..8919177bcc 100644 --- a/libswscale/ppc/swscale_altivec_template.c +++ b/libswscale/ppc/swscale_altivec_template.c @@ -92,7 +92,7 @@ yuv2yuvX_altivec_real(const int16_t *lumFilter, int16_t **lumSrc, int lumFilterS 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 @@ yuv2yuvX_altivec_real(const int16_t *lumFilter, int16_t **lumSrc, int lumFilterS 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 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, 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<dstW; i++) { |