]> git.sesse.net Git - pgn-extract/blobdiff - farmhash-c.cpp
Store a hash of the previous board, to be able to disambigutate transpositions. ...
[pgn-extract] / farmhash-c.cpp
diff --git a/farmhash-c.cpp b/farmhash-c.cpp
new file mode 100644 (file)
index 0000000..ce21a6e
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stdint.h>
+#include <farmhash.h>
+
+extern "C" uint64_t farmhash_32(const char* s, size_t len)
+{
+       return util::Hash32(s, len);
+}