[Mplayer-cvslog] CVS: main/libmpcodecs vf_ilpack.c,1.2,1.3

D Richard Felker III dalias at aerifal.cx
Mon Dec 15 14:37:23 CET 2003


On Mon, Dec 15, 2003 at 09:11:14AM +0100, Michael Niedermayer wrote:
> Hi
> 
> On Monday 15 December 2003 05:07, Richard Felker CVS wrote:
> > Update of /cvsroot/mplayer/main/libmpcodecs
> > In directory mail:/var/tmp.root/cvs-serv10112/libmpcodecs
> >
> > Modified Files:
> > 	vf_ilpack.c
> > Log Message:
> > mmx optimizations
> [...]
> > +		"punpcklbw %%mm0, %%mm1 \n\t"
> > +		"punpckhbw %%mm0, %%mm2 \n\t"
> [...]
> > +		"movq %%mm4, %%mm3 \n\t"
> > +		"movq %%mm6, %%mm5 \n\t"
> > +		"punpcklwd %%mm0, %%mm3 \n\t"
> > +		"punpckhwd %%mm0, %%mm4 \n\t"
> > +		"punpcklwd %%mm0, %%mm5 \n\t"
> > +		"punpckhwd %%mm0, %%mm6 \n\t"
> > +		"pslld $8, %%mm3 \n\t"
> > +		"pslld $8, %%mm4 \n\t"
> > +		"pslld $24, %%mm5 \n\t"
> > +		"pslld $24, %%mm6 \n\t"
> > +
> > +		"por %%mm3, %%mm1 \n\t"
> > +		"por %%mm4, %%mm2 \n\t"
> > +		"por %%mm5, %%mm1 \n\t"
> > +		"por %%mm6, %%mm2 \n\t"
> hmm, why not
> 
> packuswb %%mm4, %%mm4
> packuswb %%mm6, %%mm6
> punpcklbw %%mm6, %%mm4
> punpcklbw %%mm4, %%mm0
> punpckhbw %%mm4, %%mm1

Feel free to make it faster if you can. I'm no mmx god. I intended mm0
to stay all-zero for the entire loop so it doesn't have to be
reloaded, but reloading it with 0's probably takes less time than your
optims save.

Rich



More information about the MPlayer-cvslog mailing list