aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/cpu_caps.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/alc/cpu_caps.cpp b/alc/cpu_caps.cpp
index 5be02124..a2719265 100644
--- a/alc/cpu_caps.cpp
+++ b/alc/cpu_caps.cpp
@@ -101,7 +101,11 @@ void FillCPUCaps(int capfilter)
caps |= CPU_CAP_SSE;
#endif
#endif
+
#ifdef HAVE_NEON
+#ifdef __ARM_NEON
+ caps |= CPU_CAP_NEON;
+#else
al::ifstream file{"/proc/cpuinfo"};
if(!file.is_open())
ERR("Failed to open /proc/cpuinfo, cannot check for NEON support\n");
@@ -134,6 +138,7 @@ void FillCPUCaps(int capfilter)
}
}
#endif
+#endif
TRACE("Extensions:%s%s%s%s%s%s\n",
((capfilter&CPU_CAP_SSE) ? ((caps&CPU_CAP_SSE) ? " +SSE" : " -SSE") : ""),