[vlc-commits] linux/cpu: add AArch64 SVE run-time detection

Rémi Denis-Courmont git at videolan.org
Tue Dec 11 21:57:23 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 11 19:21:48 2018 +0200| [d9cd06da3a168023fab50beb0a123f86d37b1f73] | committer: Rémi Denis-Courmont

linux/cpu: add AArch64 SVE run-time detection

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

 src/linux/cpu.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/linux/cpu.c b/src/linux/cpu.c
index 38fcce98f8..e5b5abea5e 100644
--- a/src/linux/cpu.c
+++ b/src/linux/cpu.c
@@ -28,7 +28,7 @@
 #include <vlc_cpu.h>
 
 #undef CPU_FLAGS
-#if defined (__arm__)
+#if defined (__arm__) || defined (__aarch64__)
 # define CPU_FLAGS "Features\t:"
 
 #elif defined (__i386__) || defined (__x86_64__)
@@ -71,6 +71,10 @@ static void vlc_CPU_init (void)
             if (!strcmp (cap, "neon"))
                 core_caps |= VLC_CPU_ARM_NEON;
 
+#elif defined (__aarch64__)
+            if (!strcmp (cap, "sve"))
+                core_caps |= VLC_CPU_ARM_SVE;
+
 #elif defined (__i386__) || defined (__x86_64__)
             if (!strcmp (cap, "mmx"))
                 core_caps |= VLC_CPU_MMX;



More information about the vlc-commits mailing list