lkml.org 
[lkml]   [2002]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] for_each_zone / for_each_pgdat

On Mon, 15 Apr 2002, Linus Torvalds wrote:
>
> Which requires the user to use something like
>
> for_each_zone(zone) {
> ...
> } end_zone;

Side note: I should probably have made this the standard notation for the
"for_each_xxx ()" macros, because having an "end_xxx" macro means that you
can start using things like "do { ... } while (x)" loops for the control
flow, which is often easier for the compiler to optimize (ie if the first
element is always valid, and you don't need a condition going in, which is
often true).
It does, of course, end up polluting the name-space a bit more.

Linus

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

\
 
 \ /
  Last update: 2005-03-22 13:25    [from the cache]
©2003-2011 Jasper Spaans