summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/sys/hash.h')
-rw-r--r--freebsd/sys/sys/hash.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/freebsd/sys/sys/hash.h b/freebsd/sys/sys/hash.h
index 6ad89c5e..8abf17bb 100644
--- a/freebsd/sys/sys/hash.h
+++ b/freebsd/sys/sys/hash.h
@@ -118,4 +118,17 @@ hash32_strne(const void *buf, size_t len, int end, const char **ep,
return hash;
}
+
+#ifdef _KERNEL
+/*
+ * Hashing function from Bob Jenkins. Implementation in libkern/jenkins_hash.c.
+ */
+uint32_t jenkins_hash(const void *, size_t, uint32_t);
+uint32_t jenkins_hash32(const uint32_t *, size_t, uint32_t);
+
+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 */
+
#endif /* !_SYS_HASH_H_ */