mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
warning fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3838 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f0f34e3c51
commit
97699024c9
10
cpudetect.c
10
cpudetect.c
@ -3,6 +3,11 @@
|
||||
|
||||
CpuCaps gCpuCaps;
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef ARCH_X86
|
||||
|
||||
#include <stdio.h>
|
||||
@ -93,7 +98,8 @@ void GetCpuCaps( CpuCaps *caps)
|
||||
return;
|
||||
}
|
||||
do_cpuid(0x00000000, regs); // get _max_ cpuid level and vendor name
|
||||
printf("CPU vendor name: %.4s%.4s%.4s max cpuid level: %d\n",®s[1],®s[3],®s[2],regs[0]);
|
||||
printf("CPU vendor name: %.4s%.4s%.4s max cpuid level: %d\n",
|
||||
(char*) (regs+1),(char*) (regs+3),(char*) (regs+2), regs[0]);
|
||||
if (regs[0]>=0x00000001)
|
||||
{
|
||||
char *tmpstr;
|
||||
@ -173,7 +179,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){
|
||||
exit(1);
|
||||
}
|
||||
|
||||
sprintf(vendor,"%.4s%.4s%.4s",®s[1],®s[3],®s[2]);
|
||||
sprintf(vendor,"%.4s%.4s%.4s",(char*)(regs+1),(char*)(regs+3),(char*)(regs+2));
|
||||
|
||||
for(i=0; i<MAX_VENDORS; i++){
|
||||
if(!strcmp(cpuvendors[i].string,vendor)){
|
||||
|
Loading…
Reference in New Issue
Block a user