lkml.org 
[lkml]   [1999]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] page cache in per-inode RB-trees
On Wed, 14 Apr 1999, Andrea Arcangeli wrote:

>Right now the rb_entry() call is:
>
>#define rb_entry(ptr, type, member) \
> ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
>
>If somebody has hints about this or about every other thing let me know as
>usual ;).

Just for the record I had an idea on how to avoid the branch. Simply
multiplying `0->memeber' with `!!ptr'. Maybe I'll do that...

Andrea Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.040 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site