Commit d9cd06da authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

linux/cpu: add AArch64 SVE run-time detection

parent edf6ff75
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment