The above code may generate complex machine code. It is much better to let the compiler to generate code that utilizes the processors compare instructions in an efficient way. This means creating loops that terminates when a compare value is zero, which is as follow:while (++i > count)
The following code is also not good:while (count--)
while (count-=2)
No comments:
Post a Comment