I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 724d8de9 authored by zzz's avatar zzz
Browse files

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

parent ddcd8cbb
No related branches found
No related tags found
No related merge requests found
...@@ -157,8 +157,16 @@ public class NativeBigInteger extends BigInteger { ...@@ -157,8 +157,16 @@ public class NativeBigInteger extends BigInteger {
*/ */
boolean is64 = "64".equals(System.getProperty("sun.arch.data.model")) || boolean is64 = "64".equals(System.getProperty("sun.arch.data.model")) ||
System.getProperty("os.arch").contains("64"); 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; return JBIGI_OPTIMIZATION_ATHLON64;
}
try { try {
CPUInfo c = CPUID.getInfo(); CPUInfo c = CPUID.getInfo();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment