summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-27 23:10:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-27 23:10:30 +0300
commit318b784bf19993b446049462c0ceeeb62cb8e843 (patch)
tree1951f59c10666017f0010819e9c9a6977d7085ad /src
parent9879ead9d355dd09336b76e6954372fe72fb8b83 (diff)
downloadplus-318b784bf19993b446049462c0ceeeb62cb8e843.tar.gz
plus-318b784bf19993b446049462c0ceeeb62cb8e843.tar.bz2
plus-318b784bf19993b446049462c0ceeeb62cb8e843.tar.xz
plus-318b784bf19993b446049462c0ceeeb62cb8e843.zip
Enable simd for clang >= 3.6
Diffstat (limited to 'src')
-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