Lines Matching defs:subtree
273 * subtree and duplicates the bit settings to the newly allocated nodes.
274 * Returns the newly allocated copy of subtree.
276 static struct node *node_copy_subtree(struct node *subtree)
280 /* Duplicate the node at the root of the subtree */
287 root->idx = subtree->idx;
288 root->mask = subtree->mask;
289 root->num_after = subtree->num_after;
292 if (subtree->left) {
293 root->left = node_copy_subtree(subtree->left);
297 if (subtree->right) {
298 root->right = node_copy_subtree(subtree->right);