summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-22 21:53:58 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-22 21:59:25 +0300
commit1129a3f3047fc5acd917e9a352b0e266677e0640 (patch)
treee1e027afb093ba1d62bad7be1c8729217cdaccfa /src/localconsts.h
parent8c7e633af83448d9d7f8791e25acf7c4356c2d85 (diff)
downloadplus-1129a3f3047fc5acd917e9a352b0e266677e0640.tar.gz
plus-1129a3f3047fc5acd917e9a352b0e266677e0640.tar.bz2
plus-1129a3f3047fc5acd917e9a352b0e266677e0640.tar.xz
plus-1129a3f3047fc5acd917e9a352b0e266677e0640.zip
Enable simd only for gcc 4.9+
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 d237d93eb..9319405ca 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -140,9 +140,10 @@
#ifdef __x86_64__
#if !defined(__clang__) && defined(__GNUC__)
-#if GCC_VERSION >= 40700
+// gcc 4.8 look like support avx2, but need global define for enable any SIMD
+#if GCC_VERSION >= 40900
#define SIMD_SUPPORTED
-#endif // GCC_VERSION > 40700
+#endif // GCC_VERSION > 40900
#endif // !defined(__clang__) && defined(__GNUC__)
#endif // __x86_64__