From 1129a3f3047fc5acd917e9a352b0e266677e0640 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Dec 2016 21:53:58 +0300 Subject: Enable simd only for gcc 4.9+ --- src/localconsts.h | 5 +++-- 1 file 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__ -- cgit v1.2.3-70-g09d2