Mercurial > libavcodec.hg
changeset 3350:eff63ac2b545 libavcodec
Make gcc-3 happy again, thanks to Olivier Castan <castan.o@free.fr> for pointing the issue
author | lu_zero |
---|---|
date | Tue, 20 Jun 2006 10:35:30 +0000 |
parents | b8e31c41384a |
children | 42b85e03b408 |
files | ppc/dsputil_h264_template_altivec.c |
diffstat | 1 files changed, 24 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/ppc/dsputil_h264_template_altivec.c Tue Jun 20 10:26:00 2006 +0000 +++ b/ppc/dsputil_h264_template_altivec.c Tue Jun 20 10:35:30 2006 +0000 @@ -252,20 +252,32 @@ } break; } - srcP0A = vec_mergeh((vector unsigned char)vzero, srcP0); - srcP0B = vec_mergel((vector unsigned char)vzero, srcP0); - srcP1A = vec_mergeh((vector unsigned char)vzero, srcP1); - srcP1B = vec_mergel((vector unsigned char)vzero, srcP1); + srcP0A = (vector signed short) + vec_mergeh((vector unsigned char)vzero, srcP0); + srcP0B = (vector signed short) + vec_mergel((vector unsigned char)vzero, srcP0); + srcP1A = (vector signed short) + vec_mergeh((vector unsigned char)vzero, srcP1); + srcP1B = (vector signed short) + vec_mergel((vector unsigned char)vzero, srcP1); - srcP2A = vec_mergeh((vector unsigned char)vzero, srcP2); - srcP2B = vec_mergel((vector unsigned char)vzero, srcP2); - srcP3A = vec_mergeh((vector unsigned char)vzero, srcP3); - srcP3B = vec_mergel((vector unsigned char)vzero, srcP3); + srcP2A = (vector signed short) + vec_mergeh((vector unsigned char)vzero, srcP2); + srcP2B = (vector signed short) + vec_mergel((vector unsigned char)vzero, srcP2); + srcP3A = (vector signed short) + vec_mergeh((vector unsigned char)vzero, srcP3); + srcP3B = (vector signed short) + vec_mergel((vector unsigned char)vzero, srcP3); - srcM1A = vec_mergeh((vector unsigned char)vzero, srcM1); - srcM1B = vec_mergel((vector unsigned char)vzero, srcM1); - srcM2A = vec_mergeh((vector unsigned char)vzero, srcM2); - srcM2B = vec_mergel((vector unsigned char)vzero, srcM2); + srcM1A = (vector signed short) + vec_mergeh((vector unsigned char)vzero, srcM1); + srcM1B = (vector signed short) + vec_mergel((vector unsigned char)vzero, srcM1); + srcM2A = (vector signed short) + vec_mergeh((vector unsigned char)vzero, srcM2); + srcM2B = (vector signed short) + vec_mergel((vector unsigned char)vzero, srcM2); sum1A = vec_adds(srcP0A, srcP1A); sum1B = vec_adds(srcP0B, srcP1B);