comparison ppc/idct_altivec.c @ 7373:266d4949aa15 libavcodec

Remove AltiVec vector declaration compiler compatibility macros. The original problem was that FSF and Apple gcc used a different syntax for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support the standard {} syntax and versions that support {} are available on all relevant Mac OS X versions. Thus the greater compatibility is no longer worth cluttering the code with macros.
author diego
date Thu, 24 Jul 2008 10:53:32 +0000
parents a8a79f5385f6
children 1615d6b75ada
comparison
equal deleted inserted replaced
7372:e97d0795ee70 7373:266d4949aa15
155 vx6 = vec_sra (vy6, shift); \ 155 vx6 = vec_sra (vy6, shift); \
156 vx7 = vec_sra (vy7, shift); 156 vx7 = vec_sra (vy7, shift);
157 157
158 158
159 static const_vector_s16_t constants[5] = { 159 static const_vector_s16_t constants[5] = {
160 AVV(23170, 13573, 6518, 21895, -23170, -21895, 32, 31), 160 {23170, 13573, 6518, 21895, -23170, -21895, 32, 31},
161 AVV(16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725), 161 {16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725},
162 AVV(22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521), 162 {22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521},
163 AVV(21407, 29692, 27969, 25172, 21407, 25172, 27969, 29692), 163 {21407, 29692, 27969, 25172, 21407, 25172, 27969, 29692},
164 AVV(19266, 26722, 25172, 22654, 19266, 22654, 25172, 26722) 164 {19266, 26722, 25172, 22654, 19266, 22654, 25172, 26722}
165 }; 165 };
166 166
167 void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block) 167 void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block)
168 { 168 {
169 POWERPC_PERF_DECLARE(altivec_idct_put_num, 1); 169 POWERPC_PERF_DECLARE(altivec_idct_put_num, 1);