call the 64 bit cpuid, even if we dont use it yet

This commit is contained in:
zzz
2011-05-25 21:35:21 +00:00
parent ddcd8cbb10
commit 724d8de9ae

View File

@ -157,8 +157,16 @@ public class NativeBigInteger extends BigInteger {
*/
boolean is64 = "64".equals(System.getProperty("sun.arch.data.model")) ||
System.getProperty("os.arch").contains("64");
if (is64)
if (is64) {
// Test the 64 bit libjcpuid, even though we don't use it yet
try {
CPUInfo c = CPUID.getInfo();
_cpuModel = c.getCPUModelString();
} catch (UnknownCPUException e) {
// log?
}
return JBIGI_OPTIMIZATION_ATHLON64;
}
try {
CPUInfo c = CPUID.getInfo();