MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / full

Method full

mlspp/src/tree_math.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38LeafCount
39LeafCount::full(const LeafCount n)
40{
41 auto w = uint32_t(1);
42 while (w < n.val) {
43 w <<= 1U;
44 }
45 return LeafCount{ w };
46}
47
48NodeCount::NodeCount(const LeafCount n)
49 : UInt32(2 * (n.val - 1) + 1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected