Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NGSolve/ngsolve
/ UsedBits
Function
UsedBits
linalg/sparsematrix.cpp:35–45 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
#endif
34
#endif
35
int UsedBits (size_t nr)
36
{
37
int cnt = 0;
38
size_t bit = 1;
39
while (bit < nr)
40
{
41
cnt++;
42
bit *= 2;
43
}
44
return cnt;
45
}
46
47
48
auto Split (size_t i, int bits)
Callers
1
MatrixGraph
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected