summaryrefslogtreecommitdiffstats
path: root/sys/sys/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/hash.h')
-rw-r--r--sys/sys/hash.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/hash.h b/sys/sys/hash.h
index 6ad89c5..ca9cc67 100644
--- a/sys/sys/hash.h
+++ b/sys/sys/hash.h
@@ -118,4 +118,13 @@ 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);
+#endif /* _KERNEL */
+
#endif /* !_SYS_HASH_H_ */
OpenPOWER on IntegriCloud