Addi an exception for core2 & corei to NBI on 32-bit kFreeBSD, NetBSD, and OpenBSD

These binaries are identical on 32-bit kFreeBSD, NetBSD, and OpenBSD systems.
If a corei CPU is found on these systems we'll use the core2 jbigi binary.

194868,ad47c3d909d0fb85242566f3c7b4be5b,libjbigi-kfreebsd-core2.so
194868,ad47c3d909d0fb85242566f3c7b4be5b,libjbigi-kfreebsd-corei.so
202848,57aa013ca310f3aae990f5ee78c100bd,libjbigi-netbsd-core2.so
202848,57aa013ca310f3aae990f5ee78c100bd,libjbigi-netbsd-corei.so
207657,01483211b6e077057302e256f185f7e7,libjbigi-openbsd-core2.so
207657,01483211b6e077057302e256f185f7e7,libjbigi-openbsd-corei.so

The I2P project does not currently ship these binaries, but they can be found
in unofficial jbigi packages.
This commit is contained in:
kytv
2012-11-19 23:47:55 +00:00
parent 5975b69b42
commit 56ef4cda82

View File

@@ -754,6 +754,9 @@ public class NativeBigInteger extends BigInteger {
if (sCPUType.equals(JBIGI_OPTIMIZATION_K6_3) && !_isWin) if (sCPUType.equals(JBIGI_OPTIMIZATION_K6_3) && !_isWin)
// k62 and k63 identical except on windows // k62 and k63 identical except on windows
sAppend = JBIGI_OPTIMIZATION_K6_2; sAppend = JBIGI_OPTIMIZATION_K6_2;
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_VIAC32)) else if (sCPUType.equals(JBIGI_OPTIMIZATION_VIAC32))
// viac32 and pentium3 identical // viac32 and pentium3 identical
sAppend = JBIGI_OPTIMIZATION_PENTIUM3; sAppend = JBIGI_OPTIMIZATION_PENTIUM3;