comparison ppc/gmc_altivec.c @ 11369:98970e51365a libavcodec

Remove DECLARE_ALIGNED_{8,16} macros These macros are redundant. All uses are replaced with the generic DECLARE_ALIGNED macro instead.
author mru
date Sat, 06 Mar 2010 14:24:59 +0000
parents 34a65026fa06
children 50415a8f1451
comparison
equal deleted inserted replaced
11368:3d4f64b8fb10 11369:98970e51365a
31 */ 31 */
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 */