Skip to content
Snippets Groups Projects
Commit 70b8332f authored by Florian Maushart's avatar Florian Maushart
Browse files

SystemInformation: Add CPU_FEATURE_FPU flag

Teach `DoesCPUSupportFeature` to check for a FPU.
parent 684bcda6
No related branches found
No related tags found
No related merge requests found
......@@ -1968,6 +1968,11 @@ bool SystemInformationImplementation::DoesCPUSupportFeature(long int dwFeature)
this->Features.ExtendedFeatures.PowerManagement.HasVoltageID)
bHasFeature = true;
// Check for FPU support.
if (((dwFeature & SystemInformation::CPU_FEATURE_FPU) != 0) &&
this->Features.HasFPU)
bHasFeature = true;
return bHasFeature;
}
......
......@@ -50,6 +50,7 @@ public:
static const long int CPU_FEATURE_TEMPSENSEDIODE = 1 << 20;
static const long int CPU_FEATURE_FREQUENCYID = 1 << 21;
static const long int CPU_FEATURE_VOLTAGEID_FREQUENCY = 1 << 22;
static const long int CPU_FEATURE_FPU = 1 << 23;
public:
SystemInformation();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment