summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index a774fc673..d858a794b 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -139,7 +139,6 @@
#endif // ENABLE_CILKPLUS
#ifdef __x86_64__
-#if !defined(__clang__) && defined(__GNUC__)
// not for FreeBSD
#if !defined(__FreeBSD_kernel__) || !defined(__GLIBC__)
// gcc 4.8 look like support avx2, but need global define for enable any SIMD
@@ -147,7 +146,9 @@
#define SIMD_SUPPORTED
#endif // GCC_VERSION > 40900
#endif // !defined(__FreeBSD_kernel__) || !defined(__GLIBC__)
-#endif // !defined(__clang__) && defined(__GNUC__)
+#if defined(__clang__) && CLANG_VERSION >= 30600
+#define SIMD_SUPPORTED
+#endif // defined(__clang__) && CLANG_VERSION >= 30600
#endif // __x86_64__
#ifdef SIMD_SUPPORTED