diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-15 14:04:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-15 14:04:15 +0100 |
commit | 7957b1cfb9f6d9aa0589ef316059116da4100856 (patch) | |
tree | 03ee701cecc7c6badbea91f5389f1fdb59482409 /contrib/mumhash/mum.h | |
parent | 17bdc86430e3cffa192055cfb66181dcaa117b5a (diff) | |
download | rspamd-7957b1cfb9f6d9aa0589ef316059116da4100856.tar.gz rspamd-7957b1cfb9f6d9aa0589ef316059116da4100856.zip |
[Fix] Unbreak build on gcc < 4.9
Diffstat (limited to 'contrib/mumhash/mum.h')
-rw-r--r-- | contrib/mumhash/mum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/mumhash/mum.h b/contrib/mumhash/mum.h index 40ce9ddf6..161c5390e 100644 --- a/contrib/mumhash/mum.h +++ b/contrib/mumhash/mum.h @@ -282,7 +282,7 @@ _mum_final (uint64_t h) { return h; } -#if defined(__x86_64__) && defined(__GNUC__) +#if defined(__x86_64__) && defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 9) && !defined(__clang__) /* We want to use AVX2 insn MULX instead of generic x86-64 MULQ where it is possible. Although on modern Intel processors MULQ takes @@ -400,7 +400,7 @@ mum_hash64 (uint64_t key, uint64_t seed) { target endianess and the unroll factor. */ static inline uint64_t mum_hash (const void *key, size_t len, uint64_t seed) { -#if defined(__x86_64__) && defined(__GNUC__) && !defined(__clang__) +#if defined(__x86_64__) && defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 9) && !defined(__clang__) static int avx2_support = 0; if (avx2_support > 0) |