fixup @since after prop

This commit is contained in:
zzz
2016-04-28 01:49:45 +00:00
parent 9f31b1fe97
commit 94056f68e9
5 changed files with 49 additions and 49 deletions

View File

@@ -109,14 +109,14 @@ public class CPUID {
/** /**
* Get the jbigi version, only available since jbigi version 3 * Get the jbigi version, only available since jbigi version 3
* Caller must catch Throwable * Caller must catch Throwable
* @since 0.9.25 * @since 0.9.26
*/ */
private native static int nativeJcpuidVersion(); private native static int nativeJcpuidVersion();
/** /**
* Get the jcpuid version * Get the jcpuid version
* @return 0 if no jcpuid available, 2 if version not supported * @return 0 if no jcpuid available, 2 if version not supported
* @since 0.9.25 * @since 0.9.26
*/ */
private static int fetchJcpuidVersion() { private static int fetchJcpuidVersion() {
if (!_nativeOk) if (!_nativeOk)
@@ -226,7 +226,7 @@ public class CPUID {
} }
/** /**
* @since 0.9.25 * @since 0.9.26
*/ */
static int getExtendedEBXFeatureFlags() static int getExtendedEBXFeatureFlags()
{ {
@@ -239,7 +239,7 @@ public class CPUID {
/** /**
* There's almost nothing in here. * There's almost nothing in here.
* @since 0.9.25 * @since 0.9.26
*/ */
static int getExtendedECXFeatureFlags() static int getExtendedECXFeatureFlags()
{ {

View File

@@ -48,7 +48,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports the AVX instruction set. * @return true iff the CPU supports the AVX instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasAVX() public boolean hasAVX()
{ {
@@ -59,7 +59,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports the AVX2 instruction set. * @return true iff the CPU supports the AVX2 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasAVX2() { public boolean hasAVX2() {
return (CPUID.getExtendedEBXFeatureFlags() & (1 << 5)) != 0; //Extended EBX Feature Bit 5 return (CPUID.getExtendedEBXFeatureFlags() & (1 << 5)) != 0; //Extended EBX Feature Bit 5
@@ -77,7 +77,7 @@ class CPUIDCPUInfo implements CPUInfo
* ref: https://en.wikipedia.org/wiki/AVX-512 * ref: https://en.wikipedia.org/wiki/AVX-512
* *
* @return true iff the CPU supports the AVX-512 Foundation instruction set. * @return true iff the CPU supports the AVX-512 Foundation instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasAVX512() public boolean hasAVX512()
{ {
@@ -91,7 +91,7 @@ class CPUIDCPUInfo implements CPUInfo
* Unused until GMP 6.1. * Unused until GMP 6.1.
* *
* @return true iff the CPU supports the ADX instruction set. * @return true iff the CPU supports the ADX instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasADX() public boolean hasADX()
{ {
@@ -100,7 +100,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports TBM. * @return true iff the CPU supports TBM.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasTBM() public boolean hasTBM()
{ {
@@ -117,7 +117,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports the 64-bit support * @return true iff the CPU supports the 64-bit support
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasX64() { public boolean hasX64() {
return (CPUID.getExtendedEDXCPUFlags() & (1 << 29)) != 0; //Extended EDX Bit 29 return (CPUID.getExtendedEDXCPUFlags() & (1 << 29)) != 0; //Extended EDX Bit 29
@@ -125,7 +125,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports the BMI1 instruction set. * @return true iff the CPU supports the BMI1 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasBMI1() { public boolean hasBMI1() {
return (CPUID.getExtendedEBXFeatureFlags() & (1 << 3)) != 0; // Extended EBX Feature Bit 3 return (CPUID.getExtendedEBXFeatureFlags() & (1 << 3)) != 0; // Extended EBX Feature Bit 3
@@ -133,7 +133,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports the BMI2 instruction set. * @return true iff the CPU supports the BMI2 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasBMI2() { public boolean hasBMI2() {
return (CPUID.getExtendedEBXFeatureFlags() & (1 << 8)) != 0; // Extended EBX Feature Bit 8 return (CPUID.getExtendedEBXFeatureFlags() & (1 << 8)) != 0; // Extended EBX Feature Bit 8
@@ -141,7 +141,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports the FMA3 instruction set. * @return true iff the CPU supports the FMA3 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasFMA3() { public boolean hasFMA3() {
return (CPUID.getECXCPUFlags() & (1 << 12)) != 0; // ECX Bit 12 return (CPUID.getECXCPUFlags() & (1 << 12)) != 0; // ECX Bit 12
@@ -149,7 +149,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* @return true iff the CPU supports the MOVBE instruction set. * @return true iff the CPU supports the MOVBE instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasMOVBE() { public boolean hasMOVBE() {
return (CPUID.getECXCPUFlags() & (1 << 22)) != 0; // ECX Bit 22 return (CPUID.getECXCPUFlags() & (1 << 22)) != 0; // ECX Bit 22
@@ -158,7 +158,7 @@ class CPUIDCPUInfo implements CPUInfo
/** /**
* Also known as LZCNT * Also known as LZCNT
* @return true iff the CPU supports the ABM instruction set. * @return true iff the CPU supports the ABM instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasABM() { public boolean hasABM() {
return (CPUID.getExtendedECXCPUFlags() & (1 << 5)) != 0; // Extended ECX Bit 5 return (CPUID.getExtendedECXCPUFlags() & (1 << 5)) != 0; // Extended ECX Bit 5

View File

@@ -71,13 +71,13 @@ public interface CPUInfo
/** /**
* @return true iff the CPU supports the AVX instruction set. * @return true iff the CPU supports the AVX instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasAVX(); public boolean hasAVX();
/** /**
* @return true iff the CPU supports the AVX2 instruction set. * @return true iff the CPU supports the AVX2 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasAVX2(); public boolean hasAVX2();
@@ -93,7 +93,7 @@ public interface CPUInfo
* ref: https://en.wikipedia.org/wiki/AVX-512 * ref: https://en.wikipedia.org/wiki/AVX-512
* *
* @return true iff the CPU supports the AVX-512 Foundation instruction set. * @return true iff the CPU supports the AVX-512 Foundation instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasAVX512(); public boolean hasAVX512();
@@ -104,13 +104,13 @@ public interface CPUInfo
* Unused until GMP 6.1. * Unused until GMP 6.1.
* *
* @return true iff the CPU supports the ADX instruction set. * @return true iff the CPU supports the ADX instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasADX(); public boolean hasADX();
/** /**
* @return true iff the CPU supports TBM. * @return true iff the CPU supports TBM.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasTBM(); public boolean hasTBM();
@@ -122,38 +122,38 @@ public interface CPUInfo
/** /**
* @return true iff the CPU supports the 64-bit support * @return true iff the CPU supports the 64-bit support
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasX64(); public boolean hasX64();
/** /**
* @return true iff the CPU supports the BMI1 instruction set. * @return true iff the CPU supports the BMI1 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasBMI1(); public boolean hasBMI1();
/** /**
* @return true iff the CPU supports the BMI2 instruction set. * @return true iff the CPU supports the BMI2 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasBMI2(); public boolean hasBMI2();
/** /**
* @return true iff the CPU supports the FMA3 instruction set. * @return true iff the CPU supports the FMA3 instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasFMA3(); public boolean hasFMA3();
/** /**
* @return true iff the CPU supports the MOVBE instruction set. * @return true iff the CPU supports the MOVBE instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasMOVBE(); public boolean hasMOVBE();
/** /**
* Also known as LZCNT * Also known as LZCNT
* @return true iff the CPU supports the ABM instruction set. * @return true iff the CPU supports the ABM instruction set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean hasABM(); public boolean hasABM();
} }

View File

@@ -79,7 +79,7 @@ public interface IntelCPUInfo extends CPUInfo {
* Supports the AVX 1 instructions. * Supports the AVX 1 instructions.
* In general, this requires 32nm or smaller process. * In general, this requires 32nm or smaller process.
* @return true if the CPU implements at least a SandyBridge level instruction/feature set. * @return true if the CPU implements at least a SandyBridge level instruction/feature set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean IsSandyCompatible(); public boolean IsSandyCompatible();
@@ -93,7 +93,7 @@ public interface IntelCPUInfo extends CPUInfo {
* Ivy Bridge is a successor to Sandy Bridge, so use IsSandyCompatible(). * Ivy Bridge is a successor to Sandy Bridge, so use IsSandyCompatible().
* *
* @return true if the CPU implements at least a IvyBridge level instruction/feature set. * @return true if the CPU implements at least a IvyBridge level instruction/feature set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean IsIvyCompatible(); public boolean IsIvyCompatible();
@@ -115,7 +115,7 @@ public interface IntelCPUInfo extends CPUInfo {
* *
* In general, this requires 22nm or smaller process. * In general, this requires 22nm or smaller process.
* @return true if the CPU implements at least a Haswell level instruction/feature set. * @return true if the CPU implements at least a Haswell level instruction/feature set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean IsHaswellCompatible(); public boolean IsHaswellCompatible();
@@ -136,7 +136,7 @@ public interface IntelCPUInfo extends CPUInfo {
* and Corei-compatible if they do not. * and Corei-compatible if they do not.
* *
* @return true if the CPU implements at least a Broadwell level instruction/feature set. * @return true if the CPU implements at least a Broadwell level instruction/feature set.
* @since 0.9.25 * @since 0.9.26
*/ */
public boolean IsBroadwellCompatible(); public boolean IsBroadwellCompatible();
} }

View File

@@ -157,10 +157,10 @@ public class NativeBigInteger extends BigInteger {
/** all libjbibi builds are identical to pentium3, case handled in getMiddleName2() */ /** all libjbibi builds are identical to pentium3, case handled in getMiddleName2() */
private final static String JBIGI_OPTIMIZATION_VIAC32 = "viac32"; private final static String JBIGI_OPTIMIZATION_VIAC32 = "viac32";
/** /**
* The optimization levels defined here are since 0.9.25. Each of the 32-bit processors below * The optimization levels defined here are since 0.9.26. Each of the 32-bit processors below
* needs an explicit fallback in getResourceList() or getMiddleName2(). * needs an explicit fallback in getResourceList() or getMiddleName2().
* 64-bit processors will fallback to athlon64 and athlon in getResourceList(). * 64-bit processors will fallback to athlon64 and athlon in getResourceList().
* @since 0.9.25 * @since 0.9.26
*/ */
private final static String JBIGI_OPTIMIZATION_COREI_SBR = "coreisbr"; private final static String JBIGI_OPTIMIZATION_COREI_SBR = "coreisbr";
private final static String JBIGI_OPTIMIZATION_COREI_HWL = "coreihwl"; private final static String JBIGI_OPTIMIZATION_COREI_HWL = "coreihwl";
@@ -181,7 +181,7 @@ public class NativeBigInteger extends BigInteger {
/** /**
* ARM * ARM
* @since 0.9.25 * @since 0.9.26
*/ */
private final static String JBIGI_OPTIMIZATION_ARM_ARMV5 = "armv5"; private final static String JBIGI_OPTIMIZATION_ARM_ARMV5 = "armv5";
private final static String JBIGI_OPTIMIZATION_ARM_ARMV6 = "armv6"; private final static String JBIGI_OPTIMIZATION_ARM_ARMV6 = "armv6";
@@ -194,7 +194,7 @@ public class NativeBigInteger extends BigInteger {
/** /**
* None, no optimizations. The default fallback for x86. * None, no optimizations. The default fallback for x86.
* @since 0.9.25 * @since 0.9.26
*/ */
private final static String JBIGI_OPTIMIZATION_X86 = "none"; private final static String JBIGI_OPTIMIZATION_X86 = "none";
@@ -507,51 +507,51 @@ public class NativeBigInteger extends BigInteger {
* big endian twos complement representation of the modulus * big endian twos complement representation of the modulus
* @return big endian twos complement representation of (base ^ exponent) % modulus * @return big endian twos complement representation of (base ^ exponent) % modulus
* @throws ArithmeticException if modulus &lt;= 0 * @throws ArithmeticException if modulus &lt;= 0
* @since 0.9.25 and libjbigi version 3 * @since 0.9.26 and libjbigi version 3
*/ */
private native static byte[] nativeModPowCT(byte base[], byte exponent[], byte modulus[]); private native static byte[] nativeModPowCT(byte base[], byte exponent[], byte modulus[]);
/** /**
* @since 0.9.25 and libjbigi version 3 * @since 0.9.26 and libjbigi version 3
* @throws ArithmeticException * @throws ArithmeticException
*/ */
private native static byte[] nativeModInverse(byte base[], byte d[]); private native static byte[] nativeModInverse(byte base[], byte d[]);
/** /**
* Only for testing jbigi's negative conversion functions! * Only for testing jbigi's negative conversion functions!
* @since 0.9.25 * @since 0.9.26
*/ */
//private native static byte[] nativeNeg(byte d[]); //private native static byte[] nativeNeg(byte d[]);
/** /**
* Get the jbigi version, only available since jbigi version 3 * Get the jbigi version, only available since jbigi version 3
* Caller must catch Throwable * Caller must catch Throwable
* @since 0.9.25 * @since 0.9.26
*/ */
private native static int nativeJbigiVersion(); private native static int nativeJbigiVersion();
/** /**
* Get the libmp version, only available since jbigi version 3 * Get the libmp version, only available since jbigi version 3
* @since 0.9.25 * @since 0.9.26
*/ */
private native static int nativeGMPMajorVersion(); private native static int nativeGMPMajorVersion();
/** /**
* Get the libmp version, only available since jbigi version 3 * Get the libmp version, only available since jbigi version 3
* @since 0.9.25 * @since 0.9.26
*/ */
private native static int nativeGMPMinorVersion(); private native static int nativeGMPMinorVersion();
/** /**
* Get the libmp version, only available since jbigi version 3 * Get the libmp version, only available since jbigi version 3
* @since 0.9.25 * @since 0.9.26
*/ */
private native static int nativeGMPPatchVersion(); private native static int nativeGMPPatchVersion();
/** /**
* Get the jbigi version * Get the jbigi version
* @return 0 if no jbigi available, 2 if version not supported * @return 0 if no jbigi available, 2 if version not supported
* @since 0.9.25 * @since 0.9.26
*/ */
private static int fetchJbigiVersion() { private static int fetchJbigiVersion() {
if (!_nativeOk) if (!_nativeOk)
@@ -566,7 +566,7 @@ public class NativeBigInteger extends BigInteger {
/** /**
* Set the jbigi and libgmp versions. Call after loading. * Set the jbigi and libgmp versions. Call after loading.
* Sets _jbigiVersion, _nativeOk3, and _libGMPVersion. * Sets _jbigiVersion, _nativeOk3, and _libGMPVersion.
* @since 0.9.25 * @since 0.9.26
*/ */
private static void setVersions() { private static void setVersions() {
_jbigiVersion = fetchJbigiVersion(); _jbigiVersion = fetchJbigiVersion();
@@ -588,7 +588,7 @@ public class NativeBigInteger extends BigInteger {
/** /**
* Get the jbigi version * Get the jbigi version
* @return 0 if no jbigi available, 2 if version info not supported * @return 0 if no jbigi available, 2 if version info not supported
* @since 0.9.25 * @since 0.9.26
*/ */
public static int getJbigiVersion() { public static int getJbigiVersion() {
return _jbigiVersion; return _jbigiVersion;
@@ -597,7 +597,7 @@ public class NativeBigInteger extends BigInteger {
/** /**
* Get the libgmp version * Get the libgmp version
* @return "unknown" if no jbigi available or if version not supported * @return "unknown" if no jbigi available or if version not supported
* @since 0.9.25 * @since 0.9.26
*/ */
public static String getLibGMPVersion() { public static String getLibGMPVersion() {
return _libGMPVersion; return _libGMPVersion;
@@ -654,7 +654,7 @@ public class NativeBigInteger extends BigInteger {
/** /**
* @throws ArithmeticException if m &lt;= 0 * @throws ArithmeticException if m &lt;= 0
* @since 0.9.25 and libjbigi version 3 and GMP version 5 * @since 0.9.26 and libjbigi version 3 and GMP version 5
*/ */
public BigInteger modPowCT(BigInteger exponent, BigInteger m) { public BigInteger modPowCT(BigInteger exponent, BigInteger m) {
if (_nativeCTOk) if (_nativeCTOk)
@@ -665,7 +665,7 @@ public class NativeBigInteger extends BigInteger {
/** /**
* @throws ArithmeticException if not coprime with m, or m &lt;= 0 * @throws ArithmeticException if not coprime with m, or m &lt;= 0
* @since 0.9.25 and libjbigi version 3 * @since 0.9.26 and libjbigi version 3
*/ */
@Override @Override
public BigInteger modInverse(BigInteger m) { public BigInteger modInverse(BigInteger m) {
@@ -1006,12 +1006,12 @@ public class NativeBigInteger extends BigInteger {
_loadStatus = s; _loadStatus = s;
} }
/** @since 0.9.25 */ /** @since 0.9.26 */
private static void error(String s) { private static void error(String s) {
error(s, null); error(s, null);
} }
/** @since 0.9.25 */ /** @since 0.9.26 */
private static void error(String s, Throwable t) { private static void error(String s, Throwable t) {
if(_doLog) { if(_doLog) {
System.err.println("ERROR: " + s); System.err.println("ERROR: " + s);