aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/cpuid.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-27 22:20:25 -0500
committerJack Lloyd <[email protected]>2017-01-29 17:32:47 -0500
commit5373c67475ce087b3b3ebf11d2798749422a4fa7 (patch)
treeeade005363b5697ec335d880109eb1d7c710adf6 /src/lib/utils/cpuid.cpp
parent2b848242fe4f6c7023e86d7e916c73af30fb9cf0 (diff)
Set SIMD ISA flags when building test_simd.cpp
Return NEON from CPUID::has_simd_32
Diffstat (limited to 'src/lib/utils/cpuid.cpp')
-rw-r--r--src/lib/utils/cpuid.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/utils/cpuid.cpp b/src/lib/utils/cpuid.cpp
index 451e04d54..0a0a63a3b 100644
--- a/src/lib/utils/cpuid.cpp
+++ b/src/lib/utils/cpuid.cpp
@@ -195,10 +195,13 @@ uint64_t arm_detect_cpu_features(size_t* cache_line_size)
*cache_line_size = static_cast<size_t>(dcache_line);
#endif
-#endif
+#else
+ // No getauxval API available, fall back on probe functions
// TODO: probe functions
+#endif
+
return detected_features;
}
@@ -351,6 +354,8 @@ bool CPUID::has_simd_32()
return CPUID::has_sse2();
#elif defined(BOTAN_TARGET_SUPPORTS_ALTIVEC)
return CPUID::has_altivec();
+#elif defined(BOTAN_TARGET_SUPPORTS_NEON)
+ return CPUID::has_neon();
#else
return true;
#endif