Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
935
static 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
945
void test_reftable_stack__auto_compaction(void)
946
{
Callers
2
test_reftable_stack__auto_compaction
Function · 0.85
test_reftable_stack__auto_compaction_factor
Function · 0.85
Calls
no outgoing calls
Tested by
2
test_reftable_stack__auto_compaction
Function · 0.68
test_reftable_stack__auto_compaction_factor
Function · 0.68