lkml.org 
[lkml]   [2012]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/9] rbtree: optimize fetching of sibling node
From
Date
On Thu, 2012-08-02 at 15:34 -0700, Michel Lespinasse wrote:

> + tmp = gparent->rb_right;
> + if (parent != tmp) { /* parent == gparent->rb_left */

> + tmp = parent->rb_right;
> + if (node == tmp) {

> + tmp = parent->rb_left;
> + if (node == tmp) {

> + sibling = parent->rb_right;
> + if (node != sibling) { /* node == parent->rb_left */


Half of them got a comment, the other half didn't.. is there any
particular reason for that?


\
 
 \ /
  Last update: 2012-08-07 02:21    [W:0.158 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site