[PATCH] New rgb32tobgr32 (was: Re: [Ffmpeg-devel] [PATCH] have cs_test check for sigsegv at smaller widths and sigill)

Michael Niedermayer michaelni
Sat Apr 14 17:32:53 CEST 2007


Hi

On Sat, Apr 14, 2007 at 02:27:35PM +0200, Ivo wrote:
[...]
> > > +		"	movq %%mm0, %%mm2		\n"
> > > +		"	movq %%mm1, %%mm4		\n"
> > > +		"	pand %%mm7, %%mm0		\n"
> > > +		"	pand %%mm6, %%mm2		\n"
> > > +		"	pand %%mm7, %%mm1		\n"
> > > +		"	pand %%mm6, %%mm4		\n"
> > > +# ifdef HAVE_MMX2
> > > +		"	pshufw $177, %%mm2, %%mm3	\n"
> > > +		"	pshufw $177, %%mm4, %%mm5	\n"
> > > +		"	por %%mm3, %%mm0		\n"
> > > +		"	por %%mm5, %%mm1		\n"
> >
> > you can still avoid 2 movq here, that is
> > read X
> > pshufw X,Y
> > pand C0,X
> > pand C1,Y
> > por  X,Y
> > store Y
> 
> Done.

looks ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070414/2b9b566d/attachment.pgp>



More information about the ffmpeg-devel mailing list