Bundle libseccomp 2.3.1
[linux-seccomp.git] / libseccomp / src / hash.h
diff --git a/libseccomp/src/hash.h b/libseccomp/src/hash.h
new file mode 100644 (file)
index 0000000..efd252f
--- /dev/null
@@ -0,0 +1,26 @@
+/**
+ * The "lookup3.c" Hash Implementation from Bob Jenkins
+ *
+ * Original Author: Bob Jenkins <bob_jenkins@burtleburtle.net>
+ * Source: http://burtleburtle.net/bob/c/lookup3.c
+ */
+
+/*
+ * Original License:
+ *
+ * These are functions for producing 32-bit hashes for hash table lookup.
+ * hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final()
+ * are externally useful functions.  Routines to test the hash are included
+ * if SELF_TEST is defined.  You can use this free for any purpose.  It's in
+ * the public domain.  It has no warranty.
+ */
+
+#ifndef _HASH_H
+#define _HASH_H
+
+#include <inttypes.h>
+
+uint32_t jhash(const void *key, size_t length, uint32_t initval);
+
+#endif
+
This page took 0.012086 seconds and 4 git commands to generate.