changeset 9793:54456267c77c libavcodec

Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.
author ramiro
date Thu, 04 Jun 2009 23:25:09 +0000
parents 05ea4942df9b
children fd3481a592b2
files dct-test.c x86/fft_sse.c x86/h264dsp_mmx.c
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/dct-test.c	Thu Jun 04 10:37:29 2009 +0000
+++ b/dct-test.c	Thu Jun 04 23:25:09 2009 +0000
@@ -186,9 +186,9 @@
     }
 }
 
-static DCTELEM block[64] __attribute__ ((aligned (16)));
-static DCTELEM block1[64] __attribute__ ((aligned (8)));
-static DCTELEM block_org[64] __attribute__ ((aligned (8)));
+DECLARE_ALIGNED(16, static DCTELEM, block[64]);
+DECLARE_ALIGNED(8, static DCTELEM, block1[64]);
+DECLARE_ALIGNED(8, static DCTELEM, block_org[64]);
 
 static inline void mmx_emms(void)
 {
@@ -384,8 +384,8 @@
 #endif
 }
 
-static uint8_t img_dest[64] __attribute__ ((aligned (8)));
-static uint8_t img_dest1[64] __attribute__ ((aligned (8)));
+DECLARE_ALIGNED(8, static uint8_t, img_dest[64]);
+DECLARE_ALIGNED(8, static uint8_t, img_dest1[64]);
 
 static void idct248_ref(uint8_t *dest, int linesize, int16_t *block)
 {
--- a/x86/fft_sse.c	Thu Jun 04 10:37:29 2009 +0000
+++ b/x86/fft_sse.c	Thu Jun 04 23:25:09 2009 +0000
@@ -22,7 +22,7 @@
 #include "libavutil/x86_cpu.h"
 #include "libavcodec/dsputil.h"
 
-static const int m1m1m1m1[4] __attribute__((aligned(16))) =
+DECLARE_ALIGNED(16, static const int, m1m1m1m1[4]) =
     { 1 << 31, 1 << 31, 1 << 31, 1 << 31 };
 
 void ff_fft_dispatch_sse(FFTComplex *z, int nbits);
--- a/x86/h264dsp_mmx.c	Thu Jun 04 10:37:29 2009 +0000
+++ b/x86/h264dsp_mmx.c	Thu Jun 04 23:25:09 2009 +0000
@@ -157,7 +157,7 @@
 static void ff_h264_idct8_add_mmx(uint8_t *dst, int16_t *block, int stride)
 {
     int i;
-    int16_t __attribute__ ((aligned(8))) b2[64];
+    DECLARE_ALIGNED_8(int16_t, b2[64]);
 
     block[0] += 32;