MuldeR's Utilities for Qt
MUtilities
|
This namespace contains functions and constants for detecting CPU information. More...
Classes | |
struct | _cpu_info_t |
Struct to hold information about the CPU. See _cpu_info_t for details! More... | |
Typedefs | |
typedef struct MUtils::CPUFetaures::_cpu_info_t | cpu_info_t |
Struct to hold information about the CPU. See _cpu_info_t for details! | |
Functions | |
MUTILS_API cpu_info_t | detect (void) |
Detect processor information. More... | |
Variables | |
static const quint8 | VENDOR_INTEL = 0x01U |
CPU vendor flag. More... | |
static const quint8 | VENDOR_AMD = 0x02U |
CPU vendor flag. More... | |
static const quint32 | FLAG_CMOV = 0x001U |
CPU feature flag. More... | |
static const quint32 | FLAG_MMX = 0x002U |
CPU feature flag. More... | |
static const quint32 | FLAG_SSE = 0x004U |
CPU feature flag. More... | |
static const quint32 | FLAG_SSE2 = 0x008U |
CPU feature flag. More... | |
static const quint32 | FLAG_SSE3 = 0x010U |
CPU feature flag. More... | |
static const quint32 | FLAG_SSSE3 = 0x020U |
CPU feature flag. More... | |
static const quint32 | FLAG_SSE41 = 0x040U |
CPU feature flag. More... | |
static const quint32 | FLAG_SSE42 = 0x080U |
CPU feature flag. More... | |
static const quint32 | FLAG_AVX = 0x100U |
CPU feature flag. More... | |
static const quint32 | FLAG_AVX2 = 0x200U |
CPU feature flag. More... | |
static const quint32 | FLAG_FMA3 = 0x400U |
CPU feature flag. More... | |
static const quint32 | FLAG_LZCNT = 0x800U |
CPU feature flag. More... | |
This namespace contains functions and constants for detecting CPU information.
Call the detect() to detect information about the processor, which will be returned in a cpu_info_t
struct.
MUTILS_API cpu_info_t MUtils::CPUFetaures::detect | ( | void | ) |
Detect processor information.
Detects information about the CPU on which the application is running, including CPU vendor, identifier string, feature flags (MMX, SSE, AVX, etc) as well as the CPU core count.
cpu_info_t
struct containing the detected information about the CPU.
|
static |
CPU feature flag.
Indicates that the CPU supports the AVX instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the AVX2 instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the CMOV instruction
|
static |
CPU feature flag.
Indicates that the CPU supports the FMA3 instruction
|
static |
CPU feature flag.
Indicates that the CPU supports the LZCNT instruction
|
static |
CPU feature flag.
Indicates that the CPU supports the MMX instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the SSE instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the SSE2 instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the SSE3 instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the SSE4.1 instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the SSE4.2 instruction set extension
|
static |
CPU feature flag.
Indicates that the CPU supports the SSSE3 instruction set extension
|
static |
CPU vendor flag.
Indicates that the CPU's vendor is AMD
|
static |
CPU vendor flag.
Indicates that the CPU's vendor is Intel