clean up unused variables and unreachable statements
This commit is contained in:
parent
6b407a16cb
commit
9809931eb4
|
@ -323,9 +323,11 @@ int get_vendor(void){
|
||||||
|
|
||||||
int get_cputype(int gettype){
|
int get_cputype(int gettype){
|
||||||
int eax, ebx, ecx, edx;
|
int eax, ebx, ecx, edx;
|
||||||
|
/*
|
||||||
int extend_family, family;
|
int extend_family, family;
|
||||||
int extend_model, model;
|
int extend_model, model;
|
||||||
int type, stepping;
|
int type, stepping;
|
||||||
|
*/
|
||||||
int feature = 0;
|
int feature = 0;
|
||||||
|
|
||||||
cpuid(1, &eax, &ebx, &ecx, &edx);
|
cpuid(1, &eax, &ebx, &ecx, &edx);
|
||||||
|
@ -428,7 +430,8 @@ int get_cacheinfo(int type, cache_info_t *cacheinfo){
|
||||||
cpuid(0, &cpuid_level, &ebx, &ecx, &edx);
|
cpuid(0, &cpuid_level, &ebx, &ecx, &edx);
|
||||||
|
|
||||||
if (cpuid_level > 1) {
|
if (cpuid_level > 1) {
|
||||||
int numcalls =0 ;
|
int numcalls;
|
||||||
|
|
||||||
cpuid(2, &eax, &ebx, &ecx, &edx);
|
cpuid(2, &eax, &ebx, &ecx, &edx);
|
||||||
numcalls = BITMASK(eax, 0, 0xff); //FIXME some systems may require repeated calls to read all entries
|
numcalls = BITMASK(eax, 0, 0xff); //FIXME some systems may require repeated calls to read all entries
|
||||||
info[ 0] = BITMASK(eax, 8, 0xff);
|
info[ 0] = BITMASK(eax, 8, 0xff);
|
||||||
|
@ -1637,7 +1640,6 @@ int get_cpuname(void){
|
||||||
else
|
else
|
||||||
return CPUTYPE_BARCELONA;
|
return CPUTYPE_BARCELONA;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case 10: // Zen3
|
case 10: // Zen3
|
||||||
if(support_avx())
|
if(support_avx())
|
||||||
#ifndef NO_AVX2
|
#ifndef NO_AVX2
|
||||||
|
@ -2193,7 +2195,6 @@ int get_coretype(void){
|
||||||
else
|
else
|
||||||
return CORE_NEHALEM;
|
return CORE_NEHALEM;
|
||||||
#endif
|
#endif
|
||||||
break;
|
|
||||||
|
|
||||||
case 7:
|
case 7:
|
||||||
if (model == 10)
|
if (model == 10)
|
||||||
|
@ -2582,4 +2583,4 @@ void get_sse(void){
|
||||||
if (features & HAVE_FMA3 ) printf("HAVE_FMA3=1\n");
|
if (features & HAVE_FMA3 ) printf("HAVE_FMA3=1\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
|
|
Loading…
Reference in New Issue