comparison ppc/gmc_altivec.c @ 10961:34a65026fa06 libavcodec

Move array specifiers outside DECLARE_ALIGNED() invocations
author mru
date Fri, 22 Jan 2010 03:25:11 +0000
parents 71ead14665e3
children 98970e51365a
comparison
equal deleted inserted replaced
10960:10759fd39860 10961:34a65026fa06
32 #define GMC1_PERF_COND (h==8) 32 #define GMC1_PERF_COND (h==8)
33 void gmc1_altivec(uint8_t *dst /* align 8 */, uint8_t *src /* align1 */, int stride, int h, int x16, int y16, int rounder) 33 void gmc1_altivec(uint8_t *dst /* align 8 */, uint8_t *src /* align1 */, int stride, int h, int x16, int y16, int rounder)
34 { 34 {
35 POWERPC_PERF_DECLARE(altivec_gmc1_num, GMC1_PERF_COND); 35 POWERPC_PERF_DECLARE(altivec_gmc1_num, GMC1_PERF_COND);
36 const DECLARE_ALIGNED_16(unsigned short, rounder_a) = rounder; 36 const DECLARE_ALIGNED_16(unsigned short, rounder_a) = rounder;
37 const DECLARE_ALIGNED_16(unsigned short, ABCD[8]) = 37 const DECLARE_ALIGNED_16(unsigned short, ABCD)[8] =
38 { 38 {
39 (16-x16)*(16-y16), /* A */ 39 (16-x16)*(16-y16), /* A */
40 ( x16)*(16-y16), /* B */ 40 ( x16)*(16-y16), /* B */
41 (16-x16)*( y16), /* C */ 41 (16-x16)*( y16), /* C */
42 ( x16)*( y16), /* D */ 42 ( x16)*( y16), /* D */