diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-04 00:35:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-04 00:35:03 +0100 |
commit | 8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8 (patch) | |
tree | ee80321a8c0b55f2faedf6e6fab1b0c339306ea2 /config.h.in | |
parent | 617bfb5da5a888b3f0ec56909e14e678a355715c (diff) | |
download | rspamd-8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8.tar.gz rspamd-8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8.zip |
Use murumur for uthash if possible.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index 69df33469..1eb67bf2f 100644 --- a/config.h.in +++ b/config.h.in @@ -200,6 +200,12 @@ #cmakedefine GLIB_HASH_COMPAT 1 #cmakedefine PARAM_H_HAS_BITSET 1 +#if (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86)) +/* Use murmur hash for UTHash for these platforms */ +#define HASH_FUNCTION MUR +#define HASH_USING_NO_STRICT_ALIASING +#endif + #define ETC_PREFIX "${ETC_PREFIX}" #define LOCALSTATES_PREFIX "${LOCALSTATES_PREFIX}" #define CMAKE_PREFIX "${CMAKE_INSTALL_PREFIX}" |