MCPcopy Create free account
hub / github.com/GJDuck/e9patch / index

Function index

src/e9patch/e9mapping.cpp:365–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 */
364template <typename Key>
365static unsigned index(Radix::Node<Key> *node, Key key)
366{
367 size_t shift = BRANCH_BITS * node->shift;
368 Key BRANCH_MASK = BRANCH_MAX - 1;
369 return ((key & (BRANCH_MASK << shift)) >> shift).to_ullong();
370}
371template <>
372unsigned index<Key128>(Radix::Node<Key128> *node, Key128 key)
373{

Callers 3

findFunction · 0.85
insertFunction · 0.85
removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected