# HG changeset patch # User lu_zero # Date 1154718181 0 # Node ID 7b4e34f1ff1ff40776ca6f224c00b93816944fc0 # Parent f7b09917c68069b5a9f94689c6010ae0751b06e6 Fix a stupid typo and another error, thanks to Emanuele Giaquinta for pointing out the issue and the patch diff -r f7b09917c680 -r 7b4e34f1ff1f ppc/dsputil_altivec.c --- a/ppc/dsputil_altivec.c Fri Aug 04 03:31:01 2006 +0000 +++ b/ppc/dsputil_altivec.c Fri Aug 04 19:03:01 2006 +0000 @@ -1714,10 +1714,10 @@ a = vec_xor(a, (vector float) vec_sl((vector unsigned int)t0, v_31)); t0 = (vector bool int)vec_and(a, t1); t1 = (vector bool int)vec_andc(a, t1); - a = vec_add(m, (vector float)t0); - m = vec_sub(m, (vector float)t1); - vec_ste(a, 0, ang+i); - vec_ste(m, 0, mag+i); + a = vec_sub(m, (vector float)t0); + m = vec_add(m, (vector float)t1); + vec_stl(a, 0, ang+i); + vec_stl(m, 0, mag+i); } }