Mercurial > libavcodec.hg
changeset 2855:da95623de901 libavcodec
simplify (d&a) and (d&~a) calculation, hint by skal
author | michael |
---|---|
date | Sat, 03 Sep 2005 09:17:30 +0000 |
parents | 00ff749b33b6 |
children | 9211043e0784 |
files | i386/h264dsp_mmx.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/i386/h264dsp_mmx.c Fri Sep 02 21:13:19 2005 +0000 +++ b/i386/h264dsp_mmx.c Sat Sep 03 09:17:30 2005 +0000 @@ -162,11 +162,10 @@ /* delta = (avg(q0, p1>>2) + (d&a)) * - (avg(p0, q1>>2) + (d&~a)) */\ "pavgb %%mm2, %%mm0 \n\t"\ - "movq %%mm5, %%mm6 \n\t"\ - "pand %%mm4, %%mm6 \n\t"\ - "paddusb %%mm6, %%mm0 \n\t"\ + "pand %%mm5, %%mm4 \n\t"\ + "paddusb %%mm4, %%mm0 \n\t"\ "pavgb %%mm1, %%mm3 \n\t"\ - "pandn %%mm5, %%mm4 \n\t"\ + "pxor %%mm5, %%mm4 \n\t"\ "paddusb %%mm4, %%mm3 \n\t"\ /* p0 += clip(delta, -tc0, tc0) * q0 -= clip(delta, -tc0, tc0) */\