* Adds the val as a child of the provided node. */
| 248 | * Adds the val as a child of the provided node. |
| 249 | */ |
| 250 | static __inline void |
| 251 | pctrie_addval(struct pctrie_node *node, uint64_t index, uint16_t clev, |
| 252 | uint64_t *val, enum pctrie_access access) |
| 253 | { |
| 254 | int slot; |
| 255 | |
| 256 | slot = pctrie_slot(index, clev); |
| 257 | pctrie_node_store(&node->pn_child[slot], |
| 258 | (void *)((uintptr_t)val | PCTRIE_ISLEAF), access); |
| 259 | } |
| 260 | |
| 261 | /* |
| 262 | * Returns the slot where two keys differ. |
no test coverage detected