Fix class for nativeJcpuidVersion()

Add output for nativeJcpuidVersion()
Change CPUIDCPUInfo back to package private
More @since fixes
This commit is contained in:
zzz
2015-12-16 15:55:39 +00:00
parent 1e3e02d1f0
commit 89e5e1d308
4 changed files with 38 additions and 14 deletions
@@ -502,51 +502,51 @@ public class NativeBigInteger extends BigInteger {
* big endian twos complement representation of the modulus
* @return big endian twos complement representation of (base ^ exponent) % modulus
* @throws ArithmeticException if modulus <= 0
* @since 0.9.18 and libjbigi version 3
* @since 0.9.25 and libjbigi version 3
*/
private native static byte[] nativeModPowCT(byte base[], byte exponent[], byte modulus[]);
/**
* @since 0.9.18 and libjbigi version 3
* @since 0.9.25 and libjbigi version 3
* @throws ArithmeticException
*/
private native static byte[] nativeModInverse(byte base[], byte d[]);
/**
* Only for testing jbigi's negative conversion functions!
* @since 0.9.18
* @since 0.9.25
*/
//private native static byte[] nativeNeg(byte d[]);
/**
* Get the jbigi version, only available since jbigi version 3
* Caller must catch Throwable
* @since 0.9.18
* @since 0.9.25
*/
private native static int nativeJbigiVersion();
/**
* Get the libmp version, only available since jbigi version 3
* @since 0.9.18
* @since 0.9.25
*/
private native static int nativeGMPMajorVersion();
/**
* Get the libmp version, only available since jbigi version 3
* @since 0.9.18
* @since 0.9.25
*/
private native static int nativeGMPMinorVersion();
/**
* Get the libmp version, only available since jbigi version 3
* @since 0.9.18
* @since 0.9.25
*/
private native static int nativeGMPPatchVersion();
/**
* Get the jbigi version
* @return 0 if no jbigi available, 2 if version not supported
* @since 0.9.18
* @since 0.9.25
*/
private static int fetchJbigiVersion() {
if (!_nativeOk)
@@ -583,7 +583,7 @@ public class NativeBigInteger extends BigInteger {
/**
* Get the jbigi version
* @return 0 if no jbigi available, 2 if version info not supported
* @since 0.9.18
* @since 0.9.25
*/
public static int getJbigiVersion() {
return _jbigiVersion;
@@ -592,7 +592,7 @@ public class NativeBigInteger extends BigInteger {
/**
* Get the libgmp version
* @return "unknown" if no jbigi available or if version not supported
* @since 0.9.18
* @since 0.9.25
*/
public static String getLibGMPVersion() {
return _libGMPVersion;
@@ -649,7 +649,7 @@ public class NativeBigInteger extends BigInteger {
/**
* @throws ArithmeticException if m <= 0
* @since 0.9.18 and libjbigi version 3 and GMP version 5
* @since 0.9.25 and libjbigi version 3 and GMP version 5
*/
public BigInteger modPowCT(BigInteger exponent, BigInteger m) {
if (_nativeCTOk)
@@ -660,7 +660,7 @@ public class NativeBigInteger extends BigInteger {
/**
* @throws ArithmeticException if not coprime with m, or m <= 0
* @since 0.9.18 and libjbigi version 3
* @since 0.9.25 and libjbigi version 3
*/
@Override
public BigInteger modInverse(BigInteger m) {