Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
a87884aa
Commit
a87884aa
authored
Sep 28, 2013
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpuid: ccanlint fixes.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
659efe73
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
ccan/cpuid/BSD-MIT
ccan/cpuid/BSD-MIT
+0
-1
ccan/cpuid/LICENSE
ccan/cpuid/LICENSE
+1
-0
ccan/cpuid/_info
ccan/cpuid/_info
+3
-2
ccan/cpuid/cpuid.h
ccan/cpuid/cpuid.h
+1
-1
ccan/cpuid/test/run.c
ccan/cpuid/test/run.c
+2
-2
No files found.
ccan/cpuid/BSD-MIT
deleted
120000 → 0
View file @
659efe73
../../licenses/BSD-MIT
\ No newline at end of file
ccan/cpuid/LICENSE
0 → 100644
View file @
a87884aa
../../licenses/BSD-MIT
\ No newline at end of file
ccan/cpuid/_info
View file @
a87884aa
...
...
@@ -8,10 +8,11 @@
*
* Example:
* #include <ccan/cpuid/cpuid.h>
* #include <stdio.h>
*
* int main()
* int main(
void
)
* {
*
in
t highest;
*
uint32_
t highest;
* cpuid(CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
* printf ("Highest extended function supported: %d\n", highest);
*
...
...
ccan/cpuid/cpuid.h
View file @
a87884aa
ccan/cpuid/test/run.c
View file @
a87884aa
#include "
cpuid.h
"
#include "
../cpuid.c
"
#include <stdio.h>
#include <stdint.h>
int
main
()
int
main
(
void
)
{
if
(
!
cpuid_is_supported
())
{
printf
(
"CPUID instruction is not supported by this CPU
\n
"
);
...
...
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