Mercurial > libavcodec.hg
comparison dct-test.c @ 10961:34a65026fa06 libavcodec
Move array specifiers outside DECLARE_ALIGNED() invocations
author | mru |
---|---|
date | Fri, 22 Jan 2010 03:25:11 +0000 |
parents | 54456267c77c |
children | 4b6b3ffbaee3 |
comparison
equal
deleted
inserted
replaced
10960:10759fd39860 | 10961:34a65026fa06 |
---|---|
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 DECLARE_ALIGNED(16, static DCTELEM, block[64]); | 189 DECLARE_ALIGNED(16, static DCTELEM, block)[64]; |
190 DECLARE_ALIGNED(8, static DCTELEM, block1[64]); | 190 DECLARE_ALIGNED(8, static DCTELEM, block1)[64]; |
191 DECLARE_ALIGNED(8, static DCTELEM, block_org[64]); | 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 DECLARE_ALIGNED(8, static uint8_t, img_dest[64]); | 387 DECLARE_ALIGNED(8, static uint8_t, img_dest)[64]; |
388 DECLARE_ALIGNED(8, static uint8_t, img_dest1[64]); | 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]; |