[vlc-commits] misc/cpu: remove ANDROID code

Thomas Guillem git at videolan.org
Sat May 5 11:30:06 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat May  5 11:24:45 2018 +0200| [2b56980493455394a1f2769250a7f786634b4066] | committer: Thomas Guillem

misc/cpu: remove ANDROID code

This code was never used until ea81c71. This code doesn't compile since it
requires the cpufeatures lib from the android-ndk that was never built from the
VLC project.

Android will use linux/cpu.c for CPU detection.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b56980493455394a1f2769250a7f786634b4066
---

 src/misc/cpu.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 56010e60b7..e8d3013ade 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -49,9 +49,6 @@
 #ifdef __APPLE__
 #include <sys/sysctl.h>
 #endif
-#ifdef __ANDROID__
-#include <cpu-features.h>
-#endif
 
 #if defined(__OpenBSD__) && defined(__powerpc__)
 #include <sys/param.h>
@@ -251,12 +248,6 @@ out:
 
 #   endif
 
-#elif defined ( __arm__)
-# ifdef __ANDROID__
-    if (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON)
-        i_capabilities |= VLC_CPU_ARM_NEON;
-# endif
-
 #endif
 
     cpu_flags = i_capabilities;



More information about the vlc-commits mailing list