Mercurial > libavcodec.hg
changeset 6028:1ba8ee13e5b9 libavcodec
Make strict altivec parsers happy (gcc-4.3 and others)
author | lu_zero |
---|---|
date | Sun, 16 Dec 2007 14:31:38 +0000 |
parents | d1b9b395b1db |
children | fc51a6ffa64f |
files | ppc/vc1dsp_altivec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ppc/vc1dsp_altivec.c Sun Dec 16 12:45:38 2007 +0000 +++ b/ppc/vc1dsp_altivec.c Sun Dec 16 14:31:38 2007 +0000 @@ -311,7 +311,7 @@ #define ADD(dest,src,perm) \ /* *(uint64_t *)&tmp = *(uint64_t *)dest; */ \ tmp = vec_ld (0, dest); \ - tmp2 = (vector unsigned int)vec_perm (tmp, vec_splat_u8(0), perm); \ + tmp2 = (vector signed short)vec_perm (tmp, vec_splat_u8(0), perm); \ tmp3 = vec_adds (tmp2, src); \ tmp = vec_packsu (tmp3, tmp3); \ vec_ste ((vector unsigned int)tmp, 0, (unsigned int *)dest); \