Mercurial > libavcodec.hg
comparison dct-test.c @ 9793:54456267c77c libavcodec
Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.
author | ramiro |
---|---|
date | Thu, 04 Jun 2009 23:25:09 +0000 |
parents | 8d51b340393e |
children | 34a65026fa06 |
comparison
equal
deleted
inserted
replaced
9792:05ea4942df9b | 9793:54456267c77c |
---|---|
184 idct_mmx_perm[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2); | 184 idct_mmx_perm[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2); |
185 // idct_simple_mmx_perm[i] = simple_block_permute_op(i); | 185 // idct_simple_mmx_perm[i] = simple_block_permute_op(i); |
186 } | 186 } |
187 } | 187 } |
188 | 188 |
189 static DCTELEM block[64] __attribute__ ((aligned (16))); | 189 DECLARE_ALIGNED(16, static DCTELEM, block[64]); |
190 static DCTELEM block1[64] __attribute__ ((aligned (8))); | 190 DECLARE_ALIGNED(8, static DCTELEM, block1[64]); |
191 static DCTELEM block_org[64] __attribute__ ((aligned (8))); | 191 DECLARE_ALIGNED(8, static DCTELEM, block_org[64]); |
192 | 192 |
193 static inline void mmx_emms(void) | 193 static inline void mmx_emms(void) |
194 { | 194 { |
195 #if HAVE_MMX | 195 #if HAVE_MMX |
196 if (cpu_flags & FF_MM_MMX) | 196 if (cpu_flags & FF_MM_MMX) |
382 is_idct ? "IDCT" : "DCT", | 382 is_idct ? "IDCT" : "DCT", |
383 name, (double)it1 * 1000.0 / (double)ti1); | 383 name, (double)it1 * 1000.0 / (double)ti1); |
384 #endif | 384 #endif |
385 } | 385 } |
386 | 386 |
387 static uint8_t img_dest[64] __attribute__ ((aligned (8))); | 387 DECLARE_ALIGNED(8, static uint8_t, img_dest[64]); |
388 static uint8_t img_dest1[64] __attribute__ ((aligned (8))); | 388 DECLARE_ALIGNED(8, static uint8_t, img_dest1[64]); |
389 | 389 |
390 static void idct248_ref(uint8_t *dest, int linesize, int16_t *block) | 390 static void idct248_ref(uint8_t *dest, int linesize, int16_t *block) |
391 { | 391 { |
392 static int init; | 392 static int init; |
393 static double c8[8][8]; | 393 static double c8[8][8]; |