Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f6c77658
Commit
f6c77658
authored
Aug 04, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect ARMv6 on Linux
parent
1d2a483e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/posix/linux_cpu.c
src/posix/linux_cpu.c
+8
-3
No files found.
src/posix/linux_cpu.c
View file @
f6c77658
...
...
@@ -54,12 +54,17 @@ static void vlc_CPU_init (void)
while
(
getline
(
&
line
,
&
linelen
,
info
)
!=
-
1
)
{
if
(
strncmp
(
line
,
CPU_FLAGS
,
strlen
(
CPU_FLAGS
)))
continue
;
char
*
p
=
line
,
*
cap
;
uint_fast32_t
core_caps
=
0
;
#if defined (__arm__)
unsigned
ver
;
if
(
sscanf
(
line
,
"Processor
\t
: ARMv%u"
,
&
ver
)
>=
1
&&
ver
>=
6
)
core_caps
|=
VLC_CPU_ARMv6
;
#endif
if
(
strncmp
(
line
,
CPU_FLAGS
,
strlen
(
CPU_FLAGS
)))
continue
;
while
((
cap
=
strsep
(
&
p
,
" "
))
!=
NULL
)
{
#if defined (__arm__)
...
...
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