aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-17 14:14:29 -0700
committerChris Robinson <[email protected]>2020-05-17 14:14:29 -0700
commitc75c96ce2d2f3801c8e28462d529fe999d12db8f (patch)
treeb1360646d37ba7b977d5a42b0f12f89f20540ff3
parent36aebbb6ae02337a58705bd0cfd98be407a89c85 (diff)
Assume Neon support if cpu_caps.cpp is compiled with it
-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") : ""),