Mercurial > libavcodec.hg
diff qdm2.c @ 5009:4d10df33e823 libavcodec
Use DECLARE_ALIGNED to ease porting
author | reimar |
---|---|
date | Tue, 15 May 2007 20:47:55 +0000 |
parents | 05e932ddaaa9 |
children | 2b72f9bc4f06 |
line wrap: on
line diff
--- a/qdm2.c Mon May 14 23:22:02 2007 +0000 +++ b/qdm2.c Tue May 15 20:47:55 2007 +0000 @@ -129,7 +129,7 @@ } QDM2Complex; typedef struct { - QDM2Complex complex[256 + 1] __attribute__((aligned(16))); + DECLARE_ALIGNED_16(QDM2Complex, complex[256 + 1]); float samples_im[MPA_MAX_CHANNELS][256]; float samples_re[MPA_MAX_CHANNELS][256]; } QDM2FFT; @@ -182,9 +182,9 @@ float output_buffer[1024]; /// Synthesis filter - MPA_INT synth_buf[MPA_MAX_CHANNELS][512*2] __attribute__((aligned(16))); + DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512*2]); int synth_buf_offset[MPA_MAX_CHANNELS]; - int32_t sb_samples[MPA_MAX_CHANNELS][128][SBLIMIT] __attribute__((aligned(16))); + DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][128][SBLIMIT]); /// Mixed temporary data used in decoding float tone_level[MPA_MAX_CHANNELS][30][64]; @@ -229,7 +229,7 @@ static uint8_t random_dequant_type24[128][3]; static float noise_samples[128]; -static MPA_INT mpa_window[512] __attribute__((aligned(16))); +static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]); static void softclip_table_init(void) {