This is kind of a generic question, but I don't have enough knowledge of the
inner workings of compilers to know the answer.

Given these two code snippets:

// begin sample one
if((y | 0x3f) && x)
{
    //do something
}
else
{
    //do something else
}
// end sample one

// begin sample two
if(x)
{
    if(y | 0x3f)
    {
        // do something
    }
}
else
{
    // do something else
}
// end sample two

Is there any difference in the speed at which the code completes if x is
false?  Will it change if the first line in sample one reads :
if(x && (y | 0x3f) )

Unfortunately, my program wont run in the emulator so I cannot run the
profiler on the code...

Thanks,
Mike



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to