Commit 70b8332f authored by Florian Maushart's avatar Florian Maushart

SystemInformation: Add CPU_FEATURE_FPU flag

Teach `DoesCPUSupportFeature` to check for a FPU.
parent 684bcda6
Pipeline #59914 passed with stage
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment