summaryrefslogtreecommitdiff
path: root/src/crc64.h
diff options
context:
space:
mode:
authorbyte2016 <[email protected]>2018-06-12 19:55:38 +0800
committerbyte2016 <[email protected]>2018-06-12 19:55:38 +0800
commit76f2c13d7c27d7419af79ea0bdc7ab7717b6935b (patch)
treeaa2ca741501d40990b892d504a1cc3b7defe57aa /src/crc64.h
Init commit.HEADmaster
Diffstat (limited to 'src/crc64.h')
-rw-r--r--src/crc64.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/crc64.h b/src/crc64.h
new file mode 100644
index 0000000..c9fca51
--- /dev/null
+++ b/src/crc64.h
@@ -0,0 +1,12 @@
+#ifndef CRC64_H
+#define CRC64_H
+
+#include <stdint.h>
+
+uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l);
+
+#ifdef REDIS_TEST
+int crc64Test(int argc, char *argv[]);
+#endif
+
+#endif