Mercurial > mplayer.hg
changeset 10013:1dfffdd245dc
changed cpudetection code to support newer pentiums
author | alex |
---|---|
date | Mon, 28 Apr 2003 16:34:35 +0000 |
parents | f8f3f8b4e0d7 |
children | 01a9af06319a |
files | loader/win32.c |
diffstat | 1 files changed, 13 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/win32.c Mon Apr 28 16:17:26 2003 +0000 +++ b/loader/win32.c Mon Apr 28 16:34:35 2003 +0000 @@ -929,26 +929,23 @@ if (gCpuCaps.has3DNow) PF[PF_AMD3D_INSTRUCTIONS_AVAILABLE] = TRUE; - switch(gCpuCaps.cpuType) + if (gCpuCaps.cpuType == 4) + { + cachedsi.dwProcessorType = PROCESSOR_INTEL_486; + cachedsi.wProcessorLevel = 4; + } + else if (gCpuCaps.cpuType > 5) { - 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_PENTIUM; + cachedsi.wProcessorLevel = 5; + } + else + { + cachedsi.dwProcessorType = PROCESSOR_INTEL_386; + cachedsi.wProcessorLevel = 3; } cachedsi.wProcessorRevision = gCpuCaps.cpuStepping; cachedsi.dwNumberOfProcessors = 1; /* hardcoded */ - } #endif