aboutsummaryrefslogtreecommitdiff
path: root/src/hash/spookyhash.h
diff options
context:
space:
mode:
authorame <[email protected]>2024-03-11 14:02:12 -0500
committerame <[email protected]>2024-03-11 14:02:12 -0500
commit74289579ac66890ef0d7df2a5ec5f15f8308b8cd (patch)
tree36570aa190e64b57c69c10e0cf0e3c1eb880bc92 /src/hash/spookyhash.h
parent652146a3a4780ede6cc99ae56871f8f6bb506284 (diff)
hashing fixes
Diffstat (limited to 'src/hash/spookyhash.h')
-rw-r--r--src/hash/spookyhash.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hash/spookyhash.h b/src/hash/spookyhash.h
index 5bcecf6..5ca6c8a 100644
--- a/src/hash/spookyhash.h
+++ b/src/hash/spookyhash.h
@@ -1,4 +1,13 @@
#include "../lua.h"
+#include <stdint.h>
+
+enum spooky_version {
+ spv1, spv2
+};
+
+void spookyhash128(uint8_t* in, size_t len, uint64_t* hash1, uint64_t* hash2, enum spooky_version v);
+uint64_t spookyhash64(uint8_t *message, size_t length, uint64_t seed, enum spooky_version v);
+uint32_t spookyhash32(uint8_t *message, size_t length, uint32_t seed, enum spooky_version v);
int l_spookyhash128_v1(lua_State*);
int l_spookyhash128_v2(lua_State*);