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

Function bitmap_writer_pos_cache_slot

pack-bitmap-write.c:243–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static size_t bitmap_writer_pos_cache_slot(struct bitmap_writer *writer,
244 const struct object_id *oid)
245{
246 return oidhash(oid) & (writer->pos_cache_nr - 1);
247}
248
249static bool bitmap_writer_pos_cache_valid(struct bitmap_writer *writer,
250 size_t slot)

Callers 2

find_cached_object_posFunction · 0.85
store_cached_object_posFunction · 0.85

Calls 1

oidhashFunction · 0.85

Tested by

no test coverage detected