On 7/30/07, Roshan <[EMAIL PROTECTED]> wrote:
> If this is part of a bigger program, using boolean
> variables with while loop, could prove useful.
It is, and the way it has actually been used makes it look even more suspicious:
while(true)
{
if(condition1)
{
do_something;
break;
}
if(condition2)
{
do_something;
break;
}
do_something;
break;
}
Besides being unreadable, does this code have any performance
drawbacks as well? My guess is that it would always ruin instruction
pipelining since the loop code will be pre-fetched/cached. But that's
just a hunch.
I think I'll have to search for my Computer Architecture book now ;)
--
Siddhesh Poyarekar
This document validates as Plain Text
--
http://mm.glug-bom.org/mailman/listinfo/linuxers