[MPlayer-dev-eng] [PATCH] SSE support for cygwin/mingw

Sascha Sommer saschasommer at freenet.de
Sat Jul 5 15:34:33 CEST 2003


> Hi,
>
> > probably you should use GetSystemInfo() under windows, according to
> > loader/win32.c it can return sse availability for win32 apps:
> >
> >         if (gCpuCaps.hasMMX)
> >             PF[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE;
> >         if (gCpuCaps.hasSSE)
> >             PF[PF_XMMI_INSTRUCTIONS_AVAILABLE] = TRUE;
> >         if (gCpuCaps.has3DNow)
> >             PF[PF_AMD3D_INSTRUCTIONS_AVAILABLE] = TRUE;
>
> or maybe it's IsProcessorFeaturePresent(), after looking again at win32.c
>

So we should do our cpucheck first and later compare the results to the ones
from IsProcessorFeaturePresent? What about
gCpuCaps.hasMMX2
gCpuCaps.hasSSE2
gCpuCaps.has3DNowExt
are they used in the mplayer codebase?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/bas
e/isprocessorfeaturepresent.asp
doesn't list them

Sascha




More information about the MPlayer-dev-eng mailing list