aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/hash.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2014-10-18 22:15:11 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2014-10-18 22:15:11 +0000
commit99e9de871aee402a1166cdecb957fe6c8c99da13 (patch)
treeaa13f053d13bd078b46dd640e041ab6d63d35d63 /sys/sys/hash.h
parent78701de4b75738036124ea6ce68a3da9cdf6f632 (diff)
downloadsrc-99e9de871aee402a1166cdecb957fe6c8c99da13.tar.gz
src-99e9de871aee402a1166cdecb957fe6c8c99da13.zip
Add a complete implementation of MurmurHash3. Tweak both implementations
so they match the established idiom. Document them in hash(9). MFC after: 1 month MFC with: r272906
Notes
Notes: svn path=/head/; revision=273268
Diffstat (limited to 'sys/sys/hash.h')
-rw-r--r--sys/sys/hash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/hash.h b/sys/sys/hash.h
index e2e008bfa853..8abf17bb3683 100644
--- a/sys/sys/hash.h
+++ b/sys/sys/hash.h
@@ -126,7 +126,8 @@ hash32_strne(const void *buf, size_t len, int end, const char **ep,
uint32_t jenkins_hash(const void *, size_t, uint32_t);
uint32_t jenkins_hash32(const uint32_t *, size_t, uint32_t);
-uint32_t murmur3_aligned_32(const void *data, size_t len, uint32_t seed);
+uint32_t murmur3_32_hash(const void *, size_t, uint32_t);
+uint32_t murmur3_32_hash32(const uint32_t *, size_t, uint32_t);
#endif /* _KERNEL */