# HG changeset patch # User lu_zero # Date 1197815498 0 # Node ID 1ba8ee13e5b948fd769f6b29816783e19f5ad75e # Parent d1b9b395b1dbfc1fee4110eb9aad5029dc722128 Make strict altivec parsers happy (gcc-4.3 and others) diff -r d1b9b395b1db -r 1ba8ee13e5b9 ppc/vc1dsp_altivec.c --- 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); \