summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/rb.h
Commit message (Collapse)AuthorAgeFilesLines
* Clean up cpp logic and comments.jasone2008-05-141-8/+21
|
* Fix a comment.jasone2008-05-031-1/+1
|
* Add rb_wrap(), which creates C function wrappers for most rb_*()jasone2008-05-011-36/+194
| | | | | | | | | | macros. Add rb_foreach_next() and rb_foreach_reverse_prev(), which make it possible to re-synchronize tree iteration after the tree has been modified. Rename rb_tree_new() to rb_new().
* Implement red-black trees without using parent pointers, and store thejasone2008-04-231-0/+776
color bit in the least significant bit of the right child pointer, in order to reduce red-black tree linkage overhead by ~2X as compared to sys/tree.h. Use the new red-black tree implementation in malloc, which drops memory usage by ~0.5 or ~1%, for 32- and 64-bit systems, respectively.
OpenPOWER on IntegriCloud