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

Function fastlogN

t/unit-tests/u-reftable-stack.c:935–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935static int fastlogN(uint64_t sz, uint64_t N)
936{
937 int l = 0;
938 if (sz == 0)
939 return 0;
940 for (; sz; sz /= N)
941 l++;
942 return l - 1;
943}
944
945void test_reftable_stack__auto_compaction(void)
946{

Calls

no outgoing calls