Mercurial > libavcodec.hg
comparison ppc/float_altivec.c @ 10961:34a65026fa06 libavcodec
Move array specifiers outside DECLARE_ALIGNED() invocations
author | mru |
---|---|
date | Fri, 22 Jan 2010 03:25:11 +0000 |
parents | 02798c603744 |
children |
comparison
equal
deleted
inserted
replaced
10960:10759fd39860 | 10961:34a65026fa06 |
---|---|
224 vec_st(d0, 0, dst + i); | 224 vec_st(d0, 0, dst + i); |
225 vec_st(d1, 16, dst + i); | 225 vec_st(d1, 16, dst + i); |
226 dst+=8; | 226 dst+=8; |
227 } | 227 } |
228 } else { | 228 } else { |
229 DECLARE_ALIGNED(16, int16_t, tmp[len]); | 229 DECLARE_ALIGNED(16, int16_t, tmp)[len]; |
230 int c, j; | 230 int c, j; |
231 for (c = 0; c < channels; c++) { | 231 for (c = 0; c < channels; c++) { |
232 float_to_int16_altivec(tmp, src[c], len); | 232 float_to_int16_altivec(tmp, src[c], len); |
233 for (i = 0, j = c; i < len; i++, j+=channels) { | 233 for (i = 0, j = c; i < len; i++, j+=channels) { |
234 dst[j] = tmp[i]; | 234 dst[j] = tmp[i]; |