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
af0cf9fb
Commit
af0cf9fb
authored
Jul 26, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/misc: added runtime NEON detection code for Android
parent
dbc3a763
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/misc/cpu.c
src/misc/cpu.c
+8
-0
No files found.
src/misc/cpu.c
View file @
af0cf9fb
...
@@ -49,6 +49,9 @@
...
@@ -49,6 +49,9 @@
#ifdef __APPLE__
#ifdef __APPLE__
#include <sys/sysctl.h>
#include <sys/sysctl.h>
#endif
#endif
#ifdef __ANDROID__
#include <cpu-features.h>
#endif
#if defined(__OpenBSD__) && defined(__powerpc__)
#if defined(__OpenBSD__) && defined(__powerpc__)
#include <sys/param.h>
#include <sys/param.h>
...
@@ -316,6 +319,11 @@ out:
...
@@ -316,6 +319,11 @@ out:
#elif defined ( __arm__)
#elif defined ( __arm__)
#ifdef __ARM_NEON__
#ifdef __ARM_NEON__
i_capabilities
|=
CPU_CAPABILITY_NEON
;
i_capabilities
|=
CPU_CAPABILITY_NEON
;
#elif defined (CAN_COMPILE_NEON)
#ifdef __ANDROID__
if
(
android_getCpuFeatures
()
&
ANDROID_CPU_ARM_FEATURE_NEON
)
i_capabilities
|=
CPU_CAPABILITY_NEON
;
#endif
#endif
#endif
#endif
#endif
...
...
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