commit f1fb5189f1d196b079cdd892a39994fe819663b5
parent 60a041931408c427350fe2775f1a8777ab0371f6
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Mon, 12 Nov 2018 22:58:37 +0300
Add ARM cpu names
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/kfr/base/platform.hpp b/include/kfr/base/platform.hpp
@@ -88,7 +88,12 @@ constexpr auto cpu_all = cfilter(internal::cpu_list, internal::cpu_list >= cpuva
/// @brief Returns name of the cpu instruction set
CMT_UNUSED static const char* cpu_name(cpu_t set)
{
+#ifdef CMT_ARCH_X86
static const char* names[] = { "common", "sse2", "sse3", "ssse3", "sse41", "sse42", "avx1", "avx2", "avx512" };
+#endif
+#ifdef CMT_ARCH_ARM
+ static const char* names[] = { "common", "neon", "neon64" };
+#endif
if (set >= cpu_t::lowest && set <= cpu_t::highest)
return names[static_cast<size_t>(set)];
return "-";