]> source.dussan.org Git - rspamd.git/commitdiff
Use murumur for uthash if possible.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Aug 2013 23:35:03 +0000 (00:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Aug 2013 23:35:03 +0000 (00:35 +0100)
config.h.in

index 69df3346998b2156e3f3c313e60dc98d3235495b..1eb67bf2f0a7a69d2c07eddc90a2618df064739b 100644 (file)
 #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}"