Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7bb289c4
Commit
7bb289c4
authored
Aug 29, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert ARM part of [
806505a4
]
parent
ed371431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
src/misc/cpu.c
src/misc/cpu.c
+14
-8
No files found.
src/misc/cpu.c
View file @
7bb289c4
...
@@ -257,6 +257,10 @@ out:
...
@@ -257,6 +257,10 @@ out:
# if defined (__ARM_NEON__)
# if defined (__ARM_NEON__)
i_capabilities
|=
CPU_CAPABILITY_NEON
;
i_capabilities
|=
CPU_CAPABILITY_NEON
;
# elif defined (CAN_COMPILE_NEON)
# elif defined (CAN_COMPILE_NEON)
# define NEED_RUNTIME_CPU_CHECK 1
# endif
# ifdef NEED_RUNTIME_CPU_CHECK
# if defined (__linux__)
# if defined (__linux__)
FILE
*
info
=
fopen
(
"/proc/cpuinfo"
,
"rt"
);
FILE
*
info
=
fopen
(
"/proc/cpuinfo"
,
"rt"
);
if
(
info
!=
NULL
)
if
(
info
!=
NULL
)
...
@@ -266,16 +270,18 @@ out:
...
@@ -266,16 +270,18 @@ out:
while
(
getline
(
&
line
,
&
linelen
,
info
)
!=
-
1
)
while
(
getline
(
&
line
,
&
linelen
,
info
)
!=
-
1
)
{
{
const
char
*
cap
;
const
char
*
cap
;
if
(
strncmp
(
line
,
"Features
\t
:"
,
10
))
if
(
strncmp
(
line
,
"Features
\t
:"
,
10
))
continue
;
continue
;
cap
=
strstr
(
line
+
10
,
" neon"
);
/* TODO: detect other CPU features when we use them */
if
(
cap
!=
NULL
&&
(
cap
[
5
]
==
'\0'
||
cap
[
5
]
==
' '
))
# if defined (CAN_COMPILE_NEON) && !defined (__ARM_NEON__)
i_capabilities
|=
CPU_CAPABILITY_NEON
;
cap
=
strstr
(
line
+
10
,
" neon"
);
if
(
cap
!=
NULL
&&
(
cap
[
5
]
==
'\0'
||
cap
[
5
]
==
' '
))
break
;
i_capabilities
|=
CPU_CAPABILITY_NEON
;
# endif
break
;
}
}
fclose
(
info
);
fclose
(
info
);
free
(
line
);
free
(
line
);
...
...
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