Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25091>
return node;
}
-void
-rb_tree_init(struct rb_tree *T)
-{
- T->root = NULL;
-}
-
/**
* Replace the subtree of T rooted at u with the subtree rooted at v
*
};
/** Initialize a red-black tree */
-void rb_tree_init(struct rb_tree *T);
+static inline void
+rb_tree_init(struct rb_tree *T)
+{
+ T->root = NULL;
+}
+
/** Returns true if the red-black tree is empty */
static inline bool