Added Intel Atom as (pentium3) as prescribed by the libgmp configure scripts.

This commit is contained in:
dev
2011-01-11 17:51:29 +00:00
parent 16509e5921
commit c6a2e99a0d

View File

@ -325,7 +325,15 @@ public class CPUID {
} }
public boolean IsPentium3Compatible() public boolean IsPentium3Compatible()
{ {
return getCPUFamily() > 6 || (getCPUFamily() == 6 && getCPUModel() >=7); // Atom
if (getCPUExtendedModel() == 1 && (getCPUFamily() == 6 && (getCPUModel() == 10))){
return true;
// ??
} else if (getCPUFamily() > 6 || (getCPUFamily() == 6 && getCPUModel() >=7)){
return true;
} else {
return false;
}
} }
public boolean IsPentium4Compatible() public boolean IsPentium4Compatible()
{ {
@ -417,17 +425,18 @@ public class CPUID {
case 15: case 15:
return "Core 2 (Conroe)"; return "Core 2 (Conroe)";
} }
} } else {
if (getCPUExtendedModel() == 1){ if (getCPUExtendedModel() == 1){
switch(getCPUModel()){ switch(getCPUModel()){
case 10: case 10:
return "Core i7"; return "Core i7";
case 12: case 12:
return "Atom"; return "Atom";
case 13: case 13:
return "Xeon MP"; return "Xeon MP";
} }
} }
}
} }
if(getCPUFamily() == 7){ if(getCPUFamily() == 7){
switch(getCPUModel()){ switch(getCPUModel()){