4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Sebastian Huber eb03ac17f1 sys/tree.h: Red child with black sibling rotations
Add specialized rotations RB_RED_ROTATE_LEFT() and RB_RED_ROTATE_RIGHT() which
may be used if we rotate a red child which has a black sibling.  Such a red
node must have at least two child nodes so that the following red-black tree
invariant is fulfilled:

  Every path from a given node to any of its descendant NULL nodes goes through
  the same number of black nodes.

      PARENT
     /      \
  BLACK     RED
           /   \
        BLACK BLACK
2021-10-07 17:58:36 +02:00
..
2016-10-25 16:24:05 +02:00
2019-11-04 07:03:15 +01:00
2018-01-17 11:47:13 -06:00
2018-01-17 11:47:17 -06:00
2018-01-17 11:47:17 -06:00
2021-01-26 17:27:35 +01:00
2018-01-17 11:47:13 -06:00
2020-08-25 20:54:33 +02:00
2015-05-28 16:40:43 +02:00