summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2012-12-04 15:22:28 +0100
committerYves Orton <demerphq@gmail.com>2012-12-05 01:22:30 +0100
commit3db6cbfca39da94d152d3e860e2aa79b9c6bb161 (patch)
tree84b544ee7ae9520dd7cad1b288a72b3b0ac53022 /hv.h
parent703227f1549138154a892277bca67170373038d9 (diff)
downloadperl-3db6cbfca39da94d152d3e860e2aa79b9c6bb161.tar.gz
Switch default hash to SIPHASH on 64 bit builds and ONE_AT_A_TIME on 32 bit builds
Murmurhash has certain disadvantages that neither ONE_AT_A_TIME nor SIPHASH posses
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hv.h b/hv.h
index 3937b5d488..3ee2399ea4 100644
--- a/hv.h
+++ b/hv.h
@@ -156,7 +156,11 @@ struct xpvhv {
|| defined(PERL_HASH_FUNC_ONE_AT_A_TIME_OLD) \
|| defined(PERL_HASH_FUNC_BUZZHASH16) \
)
-#define PERL_HASH_FUNC_MURMUR3
+#ifdef U64
+#define PERL_HASH_FUNC_SIPHASH
+#else
+#define PERL_HASH_FUNC_ONE_AT_A_TIME
+#endif
#endif
#if defined(PERL_HASH_FUNC_BUZZHASH16)