"Robert M. Love" <rml@tech9.net> said:
[...]
> maybe im reading the thread wrong, but Cesar is saying the code
> while ((mm->swap_cnt << 2 * (i + 1) < max_cnt) && i++ < 10)
> does not guarentee that the expression to the left of && occurs prior to
> "i++" -- and he is Right,
Yep. It is _guaranteed_ that the part after the && is done _only_ if the
part before is != 0, and it is done after finishing the part before.
Why don't we take this to news:comp.lang.c? It certainly has _no_ relevance
to the kernel to discuss (very basic!) C misunderstandings. Perhaps a note
pointing to the FAQ for that list would be in order?
ftp://rtfm.mit.edu/pub/usenet-by-group/comp.lang.c/
-- Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513- 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/
This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:14 EST