Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VectorDB-NTU/RaBitQ-Library
/ ceil_log2
Function
ceil_log2
include/rabitqlib/utils/tools.hpp:53–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
51
52
inline size_t floor_log2(size_t x) {
53
size_t ret = 0;
54
while (x > 1) {
55
ret++;
56
x >>= 1;
57
}
58
return ret;
59
}
Callers
nothing calls this directly
Calls
1
floor_log2
Function · 0.85
Tested by
no test coverage detected