Revision afe08a72

View differences:

libavcodec/ppc/dsputil_altivec.c
32 32
int sad16_x2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
33 33
{
34 34
    int i;
35
    DECLARE_ALIGNED_16(int, s);
35
    int s;
36 36
    const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0);
37 37
    vector unsigned char *tv;
38 38
    vector unsigned char pix1v, pix2v, pix2iv, avgv, t5;
......
77 77
int sad16_y2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
78 78
{
79 79
    int i;
80
    DECLARE_ALIGNED_16(int, s);
80
    int s;
81 81
    const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0);
82 82
    vector unsigned char *tv;
83 83
    vector unsigned char pix1v, pix2v, pix3v, avgv, t5;
......
133 133
int sad16_xy2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
134 134
{
135 135
    int i;
136
    DECLARE_ALIGNED_16(int, s);
136
    int s;
137 137
    uint8_t *pix3 = pix2 + line_size;
138 138
    const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0);
139 139
    const vector unsigned short two = (const vector unsigned short)vec_splat_u16(2);
......
228 228
int sad16_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
229 229
{
230 230
    int i;
231
    DECLARE_ALIGNED_16(int, s);
231
    int s;
232 232
    const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0);
233 233
    vector unsigned char perm1, perm2, *pix1v, *pix2v;
234 234
    vector unsigned char t1, t2, t3,t4, t5;
......
270 270
int sad8_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
271 271
{
272 272
    int i;
273
    DECLARE_ALIGNED_16(int, s);
273
    int s;
274 274
    const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0);
275 275
    vector unsigned char perm1, perm2, permclear, *pix1v, *pix2v;
276 276
    vector unsigned char t1, t2, t3,t4, t5;
......
315 315
int pix_norm1_altivec(uint8_t *pix, int line_size)
316 316
{
317 317
    int i;
318
    DECLARE_ALIGNED_16(int, s);
318
    int s;
319 319
    const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0);
320 320
    vector unsigned char *tv;
321 321
    vector unsigned char pixv;
......
351 351
int sse8_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
352 352
{
353 353
    int i;
354
    DECLARE_ALIGNED_16(int, s);
354
    int s;
355 355
    const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0);
356 356
    vector unsigned char perm1, perm2, permclear, *pix1v, *pix2v;
357 357
    vector unsigned char t1, t2, t3,t4, t5;
......
405 405
int sse16_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
406 406
{
407 407
    int i;
408
    DECLARE_ALIGNED_16(int, s);
408
    int s;
409 409
    const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0);
410 410
    vector unsigned char perm1, perm2, *pix1v, *pix2v;
411 411
    vector unsigned char t1, t2, t3,t4, t5;
......
455 455
    vector signed int sumdiffs;
456 456

  
457 457
    int i;
458
    DECLARE_ALIGNED_16(int, s);
458
    int s;
459 459

  
460 460
    sad = (vector unsigned int)vec_splat_u32(0);
461 461

  
libavcodec/ppc/int_altivec.c
114 114
    register vec_s16 vec1, *pv;
115 115
    register vec_s32 res = vec_splat_s32(0), t;
116 116
    register vec_u32 shifts;
117
    DECLARE_ALIGNED_16(int32_t, ires);
117
    int32_t ires;
118 118

  
119 119
    shifts = zero_u32v;
120 120
    if(shift & 0x10) shifts = vec_add(shifts, vec_sl(vec_splat_u32(0x08), vec_splat_u32(0x1)));

Also available in: Unified diff