Mail Archives: djgpp/1997/09/09/00:31:48
At 11:42 9/7/1997 GMT, Thomas Harte wrote:
> They're probably very badly written (Lines even uses the goto
>command - shock horror! actually it only skips one if statement, and
>could be replaced with an else if, but I figured it was probably faster
>that way)
I doubt it; both ways should compile to an unconditional jump around the
statement. Check the output of `gcc -S'. Nearly always, if there are two
equivalent ways of doing something (as in your example), the compiler will
be smart enough to generate the best code to both. So you should use the
clearer one, which is probably the `else'.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -