From c75c96ce2d2f3801c8e28462d529fe999d12db8f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 17 May 2020 14:14:29 -0700 Subject: Assume Neon support if cpu_caps.cpp is compiled with it --- alc/cpu_caps.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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"); @@ -133,6 +137,7 @@ void FillCPUCaps(int capfilter) } } } +#endif #endif TRACE("Extensions:%s%s%s%s%s%s\n", -- cgit v1.2.3