aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-04 00:35:03 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-04 00:35:03 +0100
commit8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8 (patch)
treeee80321a8c0b55f2faedf6e6fab1b0c339306ea2 /config.h.in
parent617bfb5da5a888b3f0ec56909e14e678a355715c (diff)
downloadrspamd-8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8.tar.gz
rspamd-8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8.zip
Use murumur for uthash if possible.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
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}"