Dokumentation
CPUID Namespace Reference
  Query information about the processor. More...
Classes | |
| union | Reg | 
Structure for register values returned by cpuid instruction.  More... | |
Structs | |
| struct | Reg.__unnamed__ | 
Functions | |
| Reg | get (Function eax) | 
| Get CPU identification and feature information.  More... | |
| bool | has (enum FeatureECX feature) | 
| Check if feature is provided by this system.  More... | |
| bool | has (enum FeatureEDX feature) | 
| Check if feature is provided by this system.  More... | |
| bool | has (enum ExtendedFeatureEDX feature) | 
| Check if feature is provided by this system.  More... | |
Detailed Description
Query information about the processor.
- Note
 - This is an interface to the 
cpuidinstruction, which can return information about the processor. It should therefor not be confused with functionality to retrieve the ID of the current CPU (core)! 
Class Documentation
| union CPUID::Reg | 
Structure for register values returned by cpuid instruction. 
| Class Members | ||
|---|---|---|
| struct Reg | __unnamed__ | |
| char | value[16] | |
Enumeration Type Documentation
| enum CPUID::Function : uint32_t | 
| enum CPUID::FeatureECX : uint32_t | 
| enum CPUID::FeatureEDX : uint32_t | 
| enum CPUID::ExtendedFeatureEDX : uint32_t | 
Function Documentation
Get CPU identification and feature information.
- Parameters
 - 
  
eax Requested feature  
- Returns
 - Register values filled by instruction 
cpuidfor the requested feature 
      
  | 
  inline | 
Check if feature is provided by this system.
- Parameters
 - 
  
feature Feature to test  
- Returns
 trueif available,falseotherwise
      
  | 
  inline | 
Check if feature is provided by this system.
- Parameters
 - 
  
feature Feature to test  
- Returns
 trueif available,falseotherwise
      
  | 
  inline | 
Check if feature is provided by this system.
- Parameters
 - 
  
feature Extended feature to test  
- Returns
 trueif available,falseif either feature or extended features are unavailable