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

Method level

mlspp/src/tree_math.cpp:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209uint32_t
210NodeIndex::level() const
211{
212 if ((val & one) == 0) {
213 return 0;
214 }
215
216 uint32_t k = 0;
217 while (((val >> k) & one) == 1) {
218 k += 1;
219 }
220 return k;
221}
222
223} // namespace mlspp

Callers 5

is_belowMethod · 0.80
dumpMethod · 0.80
parent_hash_validMethod · 0.80
resolveMethod · 0.80
TreeHashInputClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected