]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1-lookup.h
sha1-lookup: more memory efficient search in sorted list of SHA-1
[thirdparty/git.git] / sha1-lookup.h
diff --git a/sha1-lookup.h b/sha1-lookup.h
new file mode 100644 (file)
index 0000000..3249a81
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef SHA1_LOOKUP_H
+#define SHA1_LOOKUP_H
+
+extern int sha1_entry_pos(const void *table,
+                         size_t elem_size,
+                         size_t key_offset,
+                         unsigned lo, unsigned hi, unsigned nr,
+                         const unsigned char *key);
+#endif