MCPcopy Create free account
hub / github.com/git/git / pbase_tree_cache_ix

Function pbase_tree_cache_ix

builtin/pack-objects.c:1923–1926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1921
1922static struct pbase_tree_cache *(pbase_tree_cache[256]);
1923static int pbase_tree_cache_ix(const struct object_id *oid)
1924{
1925 return oid->hash[0] % ARRAY_SIZE(pbase_tree_cache);
1926}
1927static int pbase_tree_cache_ix_incr(int ix)
1928{
1929 return (ix+1) % ARRAY_SIZE(pbase_tree_cache);

Callers 1

pbase_tree_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected