[MPlayer-dev-eng] [PATCH]: Add SSE3 detection

Diego Biurrun diego at biurrun.de
Mon Jan 12 12:30:59 CET 2009


On Mon, Jan 12, 2009 at 09:30:14AM +0800, Zuxy Meng wrote:
> 
> 2009/1/12 Diego Biurrun <diego at biurrun.de>:
> > On Fri, Jan 09, 2009 at 05:53:07PM +0800, Zhou Zongyi wrote:
> >>
> >> Since SSSE3 and SSE4a detection have been added, we should also add SSE3.
> >>
> >> --- cpudetect.c (revision 28278)
> >> +++ cpudetect.c (working copy)
> >> @@ -153,6 +153,7 @@
> >>   caps->hasMMX  = (regs2[3] & (1 << 23 )) >> 23; // 0x0800000
> >>   caps->hasSSE  = (regs2[3] & (1 << 25 )) >> 25; // 0x2000000
> >>   caps->hasSSE2 = (regs2[3] & (1 << 26 )) >> 26; // 0x4000000
> >> + caps->hasSSE3 = (regs2[2] & 1);                // 0x0000001
> >>   caps->hasSSSE3 = (regs2[2] & (1 << 9 )) >>  9; // 0x0000200
> >>   caps->hasMMX2 = caps->hasSSE; // SSE cpus supports mmxext too
> >>   cl_size = ((regs2[1] >> 8) & 0xFF)*8;
> >
> > Can anybody confirm this is correct or point out a place to
> > verify it?
> 
> This is correct. However nobody uses SSE3 code within mplayer, AFAIK.

Then please apply the patch.  This is your area of expertise anyway.

Diego



More information about the MPlayer-dev-eng mailing list