From 63e71d8a3d24ed9c5c463abe760d647b8e8e2cc2 Mon Sep 17 00:00:00 2001 From: kytv <kytv@mail.i2p> Date: Tue, 28 May 2013 10:46:04 +0000 Subject: [PATCH] nbi: Add override for x86 Solaris The jbigi binaries for Pentium II and Pentium III are identical on x86 Solaris. --- core/java/src/net/i2p/util/NativeBigInteger.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/src/net/i2p/util/NativeBigInteger.java b/core/java/src/net/i2p/util/NativeBigInteger.java index af7a7eb844..cdd300f869 100644 --- a/core/java/src/net/i2p/util/NativeBigInteger.java +++ b/core/java/src/net/i2p/util/NativeBigInteger.java @@ -757,6 +757,9 @@ public class NativeBigInteger extends BigInteger { else if (sCPUType.equals(JBIGI_OPTIMIZATION_COREI) && (!_is64) && ((_isKFreebsd) || (_isNetbsd) || (_isOpenbsd))) // corei and core2 are identical on 32bit kfreebsd, openbsd, and netbsd sAppend = JBIGI_OPTIMIZATION_CORE2; + else if (sCPUType.equals(JBIGI_OPTIMIZATION_PENTIUM2) && _isSunos && _isX86) + // pentium2 and pentium3 identical on X86 Solaris + sAppend = JBIGI_OPTIMIZATION_PENTIUM3; else if (sCPUType.equals(JBIGI_OPTIMIZATION_VIAC32)) // viac32 and pentium3 identical sAppend = JBIGI_OPTIMIZATION_PENTIUM3; -- GitLab