This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
SuperFastHash needs to define PERL_HASH_SEED_BYTES appropriately.
authorNicholas Clark <nick@ccl4.org>
Fri, 23 Nov 2012 13:29:05 +0000 (14:29 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 23 Nov 2012 13:29:05 +0000 (14:29 +0100)
hv.h

diff --git a/hv.h b/hv.h
index b89377b..3f899e5 100644 (file)
--- a/hv.h
+++ b/hv.h
@@ -261,6 +261,7 @@ struct xpvhv {
 
 #elif defined(PERL_HASH_FUNC_SUPERFAST)
 #define PERL_HASH_FUNC "SUPERFAST"
+#define PERL_HASH_SEED_BYTES 4
 /* FYI: This is the "Super-Fast" algorithm mentioned by Bob Jenkins in
  * (http://burtleburtle.net/bob/hash/doobs.html)
  * It is by Paul Hsieh (c) 2004 and is analysed here