java.lang.Object
freenet.support.CPUInformation.CPUIDCPUInfo
- All Implemented Interfaces:
CPUInfo
- Direct Known Subclasses:
AMDInfoImpl, IntelInfoImpl, VIAInfoImpl
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionGets the CPU model description.Gets the CPU vendor.booleanhasABM()Also known as LZCNTbooleanhasADX()Intel Multi-Precision Add-Carry Instruction Extensions Available in Broadwell.booleanhasAES()Whether the CPU supports AES.booleanhasAVX()Whether the CPU supports AVX.booleanhasAVX2()Whether the CPU supports AVX2.booleanDoes 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.booleanhasBMI1()Whether the CPU supports BMI1.booleanhasBMI2()Whether the CPU supports BMI2.booleanhasFMA3()Whether the CPU supports FMA3.booleanhasMMX()Checks if CPU supports the MMX instruction set.booleanhasMOVBE()Whether the CPU supports MOVBE.booleanhasSSE()Checks if CPU supports the SSE instruction set.booleanhasSSE2()Checks if CPU supports the SSE2 instruction set.booleanhasSSE3()Checks if CPU supports the SSE3 instruction set.booleanhasSSE41()Checks if CPU supports the SSE4.1 instruction set.booleanhasSSE42()Checks if CPU supports the SSE4.2 instruction set.booleanhasSSE4A()AMD K10 only.booleanhasTBM()Trailing Bit Manipulation (AMD feature)booleanhasX64()Whether the CPU supports 64-bit mode.
Constructor Details
CPUIDCPUInfo
CPUIDCPUInfo()Constructor. Every answer is read from the static CPUID helpers, so an instance holds no state; one is created per support check.
Method Details
getVendor
hasMMX
hasSSE
hasSSE2
hasSSE3
hasSSE41
hasSSE42
hasSSE4A
hasAVX
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-512hasADX
hasTBM
hasAES
hasX64
hasBMI1
hasBMI2
hasFMA3
hasMOVBE
hasABM
getCPUModelString
Description copied from interface:CPUInfoGets the CPU model description.- Specified by:
getCPUModelStringin 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 exception indicates the cause of the failure.