Revision 47261113 libavcodec/ppc/dsputil_h264_template_altivec.c

View differences:

libavcodec/ppc/dsputil_h264_template_altivec.c
252 252
    } break;
253 253
    }
254 254

  
255
    srcP0A = vec_mergeh((vector unsigned char)vzero, srcP0);
256
    srcP0B = vec_mergel((vector unsigned char)vzero, srcP0);
257
    srcP1A = vec_mergeh((vector unsigned char)vzero, srcP1);
258
    srcP1B = vec_mergel((vector unsigned char)vzero, srcP1);
259

  
260
    srcP2A = vec_mergeh((vector unsigned char)vzero, srcP2);
261
    srcP2B = vec_mergel((vector unsigned char)vzero, srcP2);
262
    srcP3A = vec_mergeh((vector unsigned char)vzero, srcP3);
263
    srcP3B = vec_mergel((vector unsigned char)vzero, srcP3);
264

  
265
    srcM1A = vec_mergeh((vector unsigned char)vzero, srcM1);
266
    srcM1B = vec_mergel((vector unsigned char)vzero, srcM1);
267
    srcM2A = vec_mergeh((vector unsigned char)vzero, srcM2);
268
    srcM2B = vec_mergel((vector unsigned char)vzero, srcM2);
255
    srcP0A = (vector signed short)
256
                vec_mergeh((vector unsigned char)vzero, srcP0);
257
    srcP0B = (vector signed short)
258
                vec_mergel((vector unsigned char)vzero, srcP0);
259
    srcP1A = (vector signed short)
260
                vec_mergeh((vector unsigned char)vzero, srcP1);
261
    srcP1B = (vector signed short)
262
                vec_mergel((vector unsigned char)vzero, srcP1);
263

  
264
    srcP2A = (vector signed short)
265
                vec_mergeh((vector unsigned char)vzero, srcP2);
266
    srcP2B = (vector signed short)
267
                vec_mergel((vector unsigned char)vzero, srcP2);
268
    srcP3A = (vector signed short)
269
                vec_mergeh((vector unsigned char)vzero, srcP3);
270
    srcP3B = (vector signed short)
271
                vec_mergel((vector unsigned char)vzero, srcP3);
272

  
273
    srcM1A = (vector signed short)
274
                vec_mergeh((vector unsigned char)vzero, srcM1);
275
    srcM1B = (vector signed short)
276
                vec_mergel((vector unsigned char)vzero, srcM1);
277
    srcM2A = (vector signed short)
278
                vec_mergeh((vector unsigned char)vzero, srcM2);
279
    srcM2B = (vector signed short)
280
                vec_mergel((vector unsigned char)vzero, srcM2);
269 281

  
270 282
    sum1A = vec_adds(srcP0A, srcP1A);
271 283
    sum1B = vec_adds(srcP0B, srcP1B);

Also available in: Unified diff