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()
{
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()
{
@ -417,7 +425,7 @@ public class CPUID {
case 15:
return "Core 2 (Conroe)";
}
}
} else {
if (getCPUExtendedModel() == 1){
switch(getCPUModel()){
case 10:
@ -429,6 +437,7 @@ public class CPUID {
}
}
}
}
if(getCPUFamily() == 7){
switch(getCPUModel()){
//Itanium.. TODO