mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
added cpuStepping to CpuCaps struct (needed win32.c)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3404 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
86fd26c007
commit
676d9cfebd
@ -101,7 +101,7 @@ void GetCpuCaps( CpuCaps *caps)
|
||||
do_cpuid(0x00000001, regs2);
|
||||
|
||||
tmpstr=GetCpuFriendlyName(regs, regs2);
|
||||
printf("CPU: %s\n",tmpstr);
|
||||
printf("CPU: %s ",tmpstr);
|
||||
free(tmpstr);
|
||||
|
||||
caps->cpuType=(regs2[0] >> 8)&0xf;
|
||||
@ -109,6 +109,9 @@ void GetCpuCaps( CpuCaps *caps)
|
||||
// use extended family (P4, IA64)
|
||||
caps->cpuType=8+((regs2[0]>>20)&255);
|
||||
}
|
||||
caps->cpuStepping=regs2[0] & 0xf;
|
||||
printf("(Type: %d, Stepping: %d)\n",
|
||||
caps->cpuType, caps->cpuStepping);
|
||||
|
||||
// general feature flags:
|
||||
caps->hasMMX = (regs2[3] & (1 << 23 )) >> 23; // 0x0800000
|
||||
@ -347,6 +350,7 @@ static void check_os_katmai_support( void )
|
||||
void GetCpuCaps( CpuCaps *caps)
|
||||
{
|
||||
caps->cpuType=0;
|
||||
caps->cpuStepping=0;
|
||||
caps->hasMMX=0;
|
||||
caps->hasMMX2=0;
|
||||
caps->has3DNow=0;
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
typedef struct cpucaps_s {
|
||||
int cpuType;
|
||||
int cpuStepping;
|
||||
int hasMMX;
|
||||
int hasMMX2;
|
||||
int has3DNow;
|
||||
|
Loading…
Reference in New Issue
Block a user