Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
7bb289c4
Commit
7bb289c4
authored
Aug 29, 2011
by
Rafaël Carré
Browse files
Revert ARM part of [
806505a4
]
parent
ed371431
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/cpu.c
View file @
7bb289c4
...
...
@@ -257,6 +257,10 @@ out:
# if defined (__ARM_NEON__)
i_capabilities
|=
CPU_CAPABILITY_NEON
;
# elif defined (CAN_COMPILE_NEON)
# define NEED_RUNTIME_CPU_CHECK 1
# endif
# ifdef NEED_RUNTIME_CPU_CHECK
# if defined (__linux__)
FILE
*
info
=
fopen
(
"/proc/cpuinfo"
,
"rt"
);
if
(
info
!=
NULL
)
...
...
@@ -266,16 +270,18 @@ out:
while
(
getline
(
&
line
,
&
linelen
,
info
)
!=
-
1
)
{
const
char
*
cap
;
const
char
*
cap
;
if
(
strncmp
(
line
,
"Features
\t
:"
,
10
))
continue
;
if
(
strncmp
(
line
,
"Features
\t
:"
,
10
))
continue
;
cap
=
strstr
(
line
+
10
,
" neon"
);
if
(
cap
!=
NULL
&&
(
cap
[
5
]
==
'\0'
||
cap
[
5
]
==
' '
))
i_capabilities
|=
CPU_CAPABILITY_NEON
;
break
;
/* TODO: detect other CPU features when we use them */
# if defined (CAN_COMPILE_NEON) && !defined (__ARM_NEON__)
cap
=
strstr
(
line
+
10
,
" neon"
);
if
(
cap
!=
NULL
&&
(
cap
[
5
]
==
'\0'
||
cap
[
5
]
==
' '
))
i_capabilities
|=
CPU_CAPABILITY_NEON
;
# endif
break
;
}
fclose
(
info
);
free
(
line
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment