summaryrefslogtreecommitdiff
path: root/lib/lookup3.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lookup3.h')
-rw-r--r--lib/lookup3.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/lookup3.h b/lib/lookup3.h
new file mode 100644
index 00000000..ad45d2d0
--- /dev/null
+++ b/lib/lookup3.h
@@ -0,0 +1,18 @@
+#ifndef WSJT_LOOKUP3_H_
+#define WSJT_LOOKUP3_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Return the full 32-bit Jenkins lookup3 hash for a byte sequence. */
+uint32_t wsjt_hashlittle(const void *key, size_t length, uint32_t initval);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif