Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
KWSys
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Florian Maushart
KWSys
Commits
70b8332f
Commit
70b8332f
authored
May 24, 2017
by
Florian Maushart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SystemInformation: Add CPU_FEATURE_FPU flag
Teach `DoesCPUSupportFeature` to check for a FPU.
parent
684bcda6
Pipeline
#59914
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
SystemInformation.cxx
SystemInformation.cxx
+5
-0
SystemInformation.hxx.in
SystemInformation.hxx.in
+1
-0
No files found.
SystemInformation.cxx
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
;
}
...
...
SystemInformation.hxx.in
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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment