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

Function closest_pow2

pack-objects.c:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static inline uint32_t closest_pow2(uint32_t v)
33{
34 v = v - 1;
35 v |= v >> 1;
36 v |= v >> 2;
37 v |= v >> 4;
38 v |= v >> 8;
39 v |= v >> 16;
40 return v + 1;
41}
42
43static void rehash_objects(struct packing_data *pdata)
44{

Callers 1

rehash_objectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected