MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pctrie_slot

Function pctrie_slot

freebsd/kern/subr_pctrie.c:151–156  ·  view source on GitHub ↗

* Return the position in the array for a given level. */

Source from the content-addressed store, hash-verified

149 * Return the position in the array for a given level.
150 */
151static __inline int
152pctrie_slot(uint64_t index, uint16_t level)
153{
154
155 return ((index >> (level * PCTRIE_WIDTH)) & PCTRIE_MASK);
156}
157
158/* Trims the key after the specified level. */
159static __inline uint64_t

Callers 7

pctrie_addvalFunction · 0.85
pctrie_keydiffFunction · 0.85
pctrie_insertFunction · 0.85
_pctrie_lookupFunction · 0.85
pctrie_lookup_geFunction · 0.85
pctrie_lookup_leFunction · 0.85
pctrie_removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected