summaryrefslogtreecommitdiff
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-06-04 23:25:09 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-06-04 23:25:09 +0000
commit74a841af8bbdec8070f9eaeb7f7b235cd9c8be7e (patch)
tree25cb96fa9fb50b39516300f570d95d12105a71ca /libavcodec/x86
parentc0cf20a24a230b0937ad494b43ffe3e4cf318c27 (diff)
Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.
Originally committed as revision 19089 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/fft_sse.c2
-rw-r--r--libavcodec/x86/h264dsp_mmx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/fft_sse.c b/libavcodec/x86/fft_sse.c
index 3d9f1c5145..e6cb3dce65 100644
--- a/libavcodec/x86/fft_sse.c
+++ b/libavcodec/x86/fft_sse.c
@@ -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);
diff --git a/libavcodec/x86/h264dsp_mmx.c b/libavcodec/x86/h264dsp_mmx.c
index e7cff2f4c2..07ee6f79f7 100644
--- a/libavcodec/x86/h264dsp_mmx.c
+++ b/libavcodec/x86/h264dsp_mmx.c
@@ -157,7 +157,7 @@ static inline void h264_idct8_1d(int16_t *block)
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;