comparison ppc/dsputil_altivec.c @ 3549:7b4e34f1ff1f libavcodec

Fix a stupid typo and another error, thanks to Emanuele Giaquinta <exg@gentoo.org> for pointing out the issue and the patch
author lu_zero
date Fri, 04 Aug 2006 19:03:01 +0000
parents 5f97ba9a4eaa
children 4f4c13574ad5
comparison
equal deleted inserted replaced
3548:f7b09917c680 3549:7b4e34f1ff1f
1712 t0 = vec_cmple(m, (vector float)vec_splat_u32(0)); 1712 t0 = vec_cmple(m, (vector float)vec_splat_u32(0));
1713 t1 = vec_cmple(a, (vector float)vec_splat_u32(0)); 1713 t1 = vec_cmple(a, (vector float)vec_splat_u32(0));
1714 a = vec_xor(a, (vector float) vec_sl((vector unsigned int)t0, v_31)); 1714 a = vec_xor(a, (vector float) vec_sl((vector unsigned int)t0, v_31));
1715 t0 = (vector bool int)vec_and(a, t1); 1715 t0 = (vector bool int)vec_and(a, t1);
1716 t1 = (vector bool int)vec_andc(a, t1); 1716 t1 = (vector bool int)vec_andc(a, t1);
1717 a = vec_add(m, (vector float)t0); 1717 a = vec_sub(m, (vector float)t0);
1718 m = vec_sub(m, (vector float)t1); 1718 m = vec_add(m, (vector float)t1);
1719 vec_ste(a, 0, ang+i); 1719 vec_stl(a, 0, ang+i);
1720 vec_ste(m, 0, mag+i); 1720 vec_stl(m, 0, mag+i);
1721 } 1721 }
1722 } 1722 }
1723 1723
1724 /* next one assumes that ((line_size % 8) == 0) */ 1724 /* next one assumes that ((line_size % 8) == 0) */
1725 void avg_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h) 1725 void avg_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h)