comparison ppc/h264_template_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
76 #define add28(a) vec_add(v28ss, a) 76 #define add28(a) vec_add(v28ss, a)
77 77
78 void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, 78 void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src,
79 int stride, int h, int x, int y) { 79 int stride, int h, int x, int y) {
80 POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1); 80 POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1);
81 DECLARE_ALIGNED_16(signed int, ABCD)[4] = 81 DECLARE_ALIGNED(16, signed int, ABCD)[4] =
82 {((8 - x) * (8 - y)), 82 {((8 - x) * (8 - y)),
83 (( x) * (8 - y)), 83 (( x) * (8 - y)),
84 ((8 - x) * ( y)), 84 ((8 - x) * ( y)),
85 (( x) * ( y))}; 85 (( x) * ( y))};
86 register int i; 86 register int i;
206 POWERPC_PERF_STOP_COUNT(PREFIX_h264_chroma_mc8_num, 1); 206 POWERPC_PERF_STOP_COUNT(PREFIX_h264_chroma_mc8_num, 1);
207 } 207 }
208 208
209 /* this code assume that stride % 16 == 0 */ 209 /* this code assume that stride % 16 == 0 */
210 void PREFIX_no_rnd_vc1_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { 210 void PREFIX_no_rnd_vc1_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) {
211 DECLARE_ALIGNED_16(signed int, ABCD)[4] = 211 DECLARE_ALIGNED(16, signed int, ABCD)[4] =
212 {((8 - x) * (8 - y)), 212 {((8 - x) * (8 - y)),
213 (( x) * (8 - y)), 213 (( x) * (8 - y)),
214 ((8 - x) * ( y)), 214 ((8 - x) * ( y)),
215 (( x) * ( y))}; 215 (( x) * ( y))};
216 register int i; 216 register int i;