[vlc-commits] src/misc: added compile time detection code for NEON on non-Linux platforms

Felix Paul Kühne git at videolan.org
Tue Jul 31 18:52:10 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Jul 26 22:24:27 2012 -0300| [d56a4422c3ead46b82d5bc52c096704c94489f9d] | committer: Felix Paul Kühne

src/misc: added compile time detection code for NEON on non-Linux platforms

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

 src/misc/cpu.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 2442d80..9f605ec 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -313,6 +313,10 @@ out:
 
 #   endif
 
+#elif defined ( __arm__)
+    #ifdef __ARM_NEON__
+        i_capabilities |= CPU_CAPABILITY_NEON;
+    #endif
 #endif
 
     cpu_flags = i_capabilities;



More information about the vlc-commits mailing list