Add jcpuid binaries for Intel macs

This commit is contained in:
kytv
2011-06-12 16:33:34 +00:00
parent 796d104b83
commit ffffd2deb5
5 changed files with 13 additions and 4 deletions

View File

@ -161,6 +161,9 @@ public class NativeBigInteger extends BigInteger {
private static final boolean _is64 = "64".equals(System.getProperty("sun.arch.data.model")) ||
System.getProperty("os.arch").contains("64");
private static final boolean _isX86 = System.getProperty("os.arch").contains("86") ||
System.getProperty("os.arch").equals("amd64");
/* libjbigi.so vs jbigi.dll */
private static final String _libPrefix = (_isWin || _isOS2 ? "" : "lib");
private static final String _libSuffix = (_isWin || _isOS2 ? ".dll" : _isMac ? ".jnilib" : ".so");
@ -168,10 +171,10 @@ public class NativeBigInteger extends BigInteger {
private final static String sCPUType; //The CPU Type to optimize for (one of the above strings)
static {
if (_isMac) // replace with osx/mac friendly jni cpu type detection when we have one
sCPUType = null;
else
if (_isX86) // Don't try to resolve CPU type on PPC and other non x86 hardware
sCPUType = resolveCPUType();
else
sCPUType = null;
loadNative();
}

View File

@ -1,3 +1,9 @@
2011-06-12 kytv
* Add jcpuid files (32 & 64bit) for Intel Macs
* Compile jbigi-osx-none for Intel Macs. libjbigi-osx-none.jnilib
is now a fat binary combining the already existing PPC
compile and my new x86 build.
2011-06-11 zzz
* i2psnark Polish translation, thanks polacco

Binary file not shown.

Binary file not shown.

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 24;
public final static long BUILD = 25;
/** for example "-test" */
public final static String EXTRA = "";