From: Vsevolod Stakhov Date: Sat, 3 Aug 2013 23:35:03 +0000 (+0100) Subject: Use murumur for uthash if possible. X-Git-Tag: 0.6.0~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8;p=thirdparty%2Frspamd.git Use murumur for uthash if possible. --- diff --git a/config.h.in b/config.h.in index 69df334699..1eb67bf2f0 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}"