aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/gmc_altivec.c
diff options
context:
space:
mode:
authorGuillaume Poirier <gpoirier@mplayerhq.hu>2007-05-17 14:14:53 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2007-05-17 14:14:53 +0000
commit88bcb6c23f6d873b3cda84275dea0ab9e3b449b6 (patch)
tree5272e7b1eb00837c3e107aae14bf687b1b5ed8ae /libavcodec/ppc/gmc_altivec.c
parent78a010fb002789198ec7f00a524e1f9e375729cf (diff)
downloadffmpeg-88bcb6c23f6d873b3cda84275dea0ab9e3b449b6.tar.gz
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
Diffstat (limited to 'libavcodec/ppc/gmc_altivec.c')
-rw-r--r--libavcodec/ppc/gmc_altivec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ppc/gmc_altivec.c b/libavcodec/ppc/gmc_altivec.c
index 4b74284471..35360b2d35 100644
--- a/libavcodec/ppc/gmc_altivec.c
+++ b/libavcodec/ppc/gmc_altivec.c
@@ -34,10 +34,10 @@
void gmc1_altivec(uint8_t *dst /* align 8 */, uint8_t *src /* align1 */, int stride, int h, int x16, int y16, int rounder)
{
POWERPC_PERF_DECLARE(altivec_gmc1_num, GMC1_PERF_COND);
- const unsigned short __attribute__ ((aligned(16))) rounder_a[8] =
+ const DECLARE_ALIGNED_16(unsigned short, rounder_a[8]) =
{rounder, rounder, rounder, rounder,
rounder, rounder, rounder, rounder};
- const unsigned short __attribute__ ((aligned(16))) ABCD[8] =
+ const DECLARE_ALIGNED_16(unsigned short, ABCD[8]) =
{
(16-x16)*(16-y16), /* A */
( x16)*(16-y16), /* B */