changed cpudetection code to support newer pentiums

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10014 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-04-28 16:34:35 +00:00
parent 489e551f54
commit 002372c7af
1 changed files with 13 additions and 16 deletions

View File

@ -929,26 +929,23 @@ static void WINAPI expGetSystemInfo(SYSTEM_INFO* si)
if (gCpuCaps.has3DNow)
PF[PF_AMD3D_INSTRUCTIONS_AVAILABLE] = TRUE;
switch(gCpuCaps.cpuType)
if (gCpuCaps.cpuType == 4)
{
case CPUTYPE_I686:
case CPUTYPE_I586:
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
cachedsi.wProcessorLevel = 5;
break;
case CPUTYPE_I486:
cachedsi.dwProcessorType = PROCESSOR_INTEL_486;
cachedsi.wProcessorLevel = 4;
break;
case CPUTYPE_I386:
default:
cachedsi.dwProcessorType = PROCESSOR_INTEL_386;
cachedsi.wProcessorLevel = 3;
break;
cachedsi.dwProcessorType = PROCESSOR_INTEL_486;
cachedsi.wProcessorLevel = 4;
}
else if (gCpuCaps.cpuType > 5)
{
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
cachedsi.wProcessorLevel = 5;
}
else
{
cachedsi.dwProcessorType = PROCESSOR_INTEL_386;
cachedsi.wProcessorLevel = 3;
}
cachedsi.wProcessorRevision = gCpuCaps.cpuStepping;
cachedsi.dwNumberOfProcessors = 1; /* hardcoded */
}
#endif