Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rolf Eike Beer
KWSys
Commits
70b8332f
Commit
70b8332f
authored
7 years ago
by
Florian Maushart
Browse files
Options
Downloads
Patches
Plain Diff
SystemInformation: Add CPU_FEATURE_FPU flag
Teach `DoesCPUSupportFeature` to check for a FPU.
parent
684bcda6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SystemInformation.cxx
+5
-0
5 additions, 0 deletions
SystemInformation.cxx
SystemInformation.hxx.in
+1
-0
1 addition, 0 deletions
SystemInformation.hxx.in
with
6 additions
and
0 deletions
SystemInformation.cxx
+
5
−
0
View file @
70b8332f
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
SystemInformation.hxx.in
+
1
−
0
View file @
70b8332f
...
...
@@ -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();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment