Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (13 sloc) 0.403 kb
628522e @gitster sha1-lookup: more memory efficient search in sorted list of SHA-1
gitster authored
1 #ifndef SHA1_LOOKUP_H
2 #define SHA1_LOOKUP_H
3
96beef8 @chriscool sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1
chriscool authored
4 typedef const unsigned char *sha1_access_fn(size_t index, void *table);
5
6 extern int sha1_pos(const unsigned char *sha1,
7 void *table,
8 size_t nr,
9 sha1_access_fn fn);
10
628522e @gitster sha1-lookup: more memory efficient search in sorted list of SHA-1
gitster authored
11 extern int sha1_entry_pos(const void *table,
12 size_t elem_size,
13 size_t key_offset,
14 unsigned lo, unsigned hi, unsigned nr,
15 const unsigned char *key);
16 #endif
Something went wrong with that request. Please try again.