Lines Matching refs:oldtnode
509 struct key_vector *oldtnode, in replace() argument
512 struct key_vector *tp = node_parent(oldtnode); in replace()
523 tnode_free(oldtnode); in replace()
538 struct key_vector *oldtnode) in inflate() argument
546 tn = tnode_new(oldtnode->key, oldtnode->pos - 1, oldtnode->bits + 1); in inflate()
551 tnode_free_init(oldtnode); in inflate()
558 for (i = child_length(oldtnode), m = 1u << tn->pos; i;) { in inflate()
559 struct key_vector *inode = get_child(oldtnode, --i); in inflate()
568 if (!tnode_full(oldtnode, inode)) { in inflate()
574 tnode_free_append(oldtnode, inode); in inflate()
625 return replace(t, oldtnode, tn); in inflate()
634 struct key_vector *oldtnode) in halve() argument
641 tn = tnode_new(oldtnode->key, oldtnode->pos + 1, oldtnode->bits - 1); in halve()
646 tnode_free_init(oldtnode); in halve()
653 for (i = child_length(oldtnode); i;) { in halve()
654 struct key_vector *node1 = get_child(oldtnode, --i); in halve()
655 struct key_vector *node0 = get_child(oldtnode, --i); in halve()
665 inode = tnode_new(node0->key, oldtnode->pos, 1); in halve()
680 return replace(t, oldtnode, tn); in halve()
689 struct key_vector *oldtnode) in collapse() argument
695 for (n = NULL, i = child_length(oldtnode); !n && i;) in collapse()
696 n = get_child(oldtnode, --i); in collapse()
699 tp = node_parent(oldtnode); in collapse()
700 put_child_root(tp, oldtnode->key, n); in collapse()
704 node_free(oldtnode); in collapse()