[MPlayer-dev-eng] [PATCH] Remove duplicated CPU detection in libmpeg2

Guillaume POIRIER poirierg at gmail.com
Fri Jun 16 11:36:21 CEST 2006


Hi Michael,

On 6/15/06, Michael Niedermayer <michaelni at gmx.at> wrote:
> Hi
>
> On Thu, Jun 15, 2006 at 05:54:48PM +0800, jserv at linux2.cc.ntu.edu.tw wrote:
> > On Thu, Jun 15, 2006 at 05:49:49PM +0800, jserv at linux2.cc.ntu.edu.tw wrote:
> > > On Thu, Jun 15, 2006 at 11:29:40AM +0200, Michael Niedermayer wrote:
> > > > Hi
> > > >
> > > > On Thu, Jun 15, 2006 at 02:35:32PM +0800, jserv at linux2.cc.ntu.edu.tw wrote:
> > > > [...]
> > > >
> > > > 3DNOW is ignored by this patch
> > >
> > > hi Michael,
> > >
> > >   Thanks for remanding me of 3DNow! detection, and I have updated my
> > > patch in attachment.
> >
> > Hello list,
> >
> > I am sorry that I sent the wrong attachment, and this one is correct
> > though.
>
> and its still not correct for MMX2 + 3dnow cpus, or SSE2 + 3dnow
> and the code is getting more and more messy for a trivial
>
> if(mmx)   flags |= MMX;
> if(3dnow) flags |= 3DNOW;
> ...
> return flags
>
> and please no 20 #ifdefs around each if()

Is the attached patch what you wanted?

Guillaume

-- 
"Success consists of going from failure to failure without loss of enthusiasm."
 -- Winston Churchill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-libmpeg2-duplicated-cpu-detection-take2.patch
Type: text/x-patch
Size: 1696 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060616/cfcfce6b/attachment.bin>


More information about the MPlayer-dev-eng mailing list