Package freenet.support.CPUInformation
Class CPUIDCPUInfo
- java.lang.Object
-
- freenet.support.CPUInformation.CPUIDCPUInfo
-
- All Implemented Interfaces:
CPUInfo
- Direct Known Subclasses:
AMDInfoImpl
,IntelInfoImpl
,VIAInfoImpl
class CPUIDCPUInfo extends Object implements CPUInfo
Moved out of CPUID.java Ref: http://en.wikipedia.org/wiki/CPUID- Since:
- 0.8.7
-
-
Constructor Summary
Constructors Constructor Description CPUIDCPUInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCPUModelString()
String
getVendor()
boolean
hasABM()
Also known as LZCNTboolean
hasADX()
Intel Multi-Precision Add-Carry Instruction Extensions Available in Broadwell.boolean
hasAES()
boolean
hasAVX()
boolean
hasAVX2()
boolean
hasAVX512()
Does the CPU supports the AVX-512 Foundation instruction set? Quote wikipedia: AVX-512 consists of multiple extensions not all meant to be supported by all processors implementing them.boolean
hasBMI1()
boolean
hasBMI2()
boolean
hasFMA3()
boolean
hasMMX()
boolean
hasMOVBE()
boolean
hasSSE()
boolean
hasSSE2()
boolean
hasSSE3()
boolean
hasSSE41()
boolean
hasSSE42()
boolean
hasSSE4A()
AMD K10 only.boolean
hasTBM()
Trailing Bit Manipulation (AMD feature)boolean
hasX64()
-
-
-
Method Detail
-
getVendor
public String getVendor()
-
hasMMX
public boolean hasMMX()
-
hasSSE
public boolean hasSSE()
-
hasSSE2
public boolean hasSSE2()
-
hasSSE3
public boolean hasSSE3()
-
hasSSE41
public boolean hasSSE41()
-
hasSSE42
public boolean hasSSE42()
-
hasSSE4A
public boolean hasSSE4A()
Description copied from interface:CPUInfo
AMD K10 only. Not supported on Intel. ref: https://en.wikipedia.org/wiki/SSE4.2#SSE4a
-
hasAVX
public boolean hasAVX()
-
hasAVX2
public boolean hasAVX2()
-
hasAVX512
public boolean hasAVX512()
Does the CPU supports the AVX-512 Foundation instruction set? Quote wikipedia: AVX-512 consists of multiple extensions not all meant to be supported by all processors implementing them. Only the core extension AVX-512F (AVX-512 Foundation) is required by all implementations. ref: https://en.wikipedia.org/wiki/AVX-512
-
hasADX
public boolean hasADX()
Intel Multi-Precision Add-Carry Instruction Extensions Available in Broadwell. Unused until GMP 6.1.
-
hasTBM
public boolean hasTBM()
Trailing Bit Manipulation (AMD feature)
-
hasAES
public boolean hasAES()
-
hasX64
public boolean hasX64()
-
hasBMI1
public boolean hasBMI1()
-
hasBMI2
public boolean hasBMI2()
-
hasFMA3
public boolean hasFMA3()
-
hasMOVBE
public boolean hasMOVBE()
-
hasABM
public boolean hasABM()
Also known as LZCNT
-
getCPUModelString
public String getCPUModelString() throws UnknownCPUException
- Specified by:
getCPUModelString
in interfaceCPUInfo
- Returns:
- A string detailing what type of CPU that is present in the machine. I.e. 'Pentium IV' etc.
- Throws:
UnknownCPUException
- If for any reason the retrieval of the requested information failed. The message encapsulated in the execption indicates the cause of the failure.
-
-