The above example could be implemented as a series of if() else if()... but it isn't and I'm trying to find a reason why. Is there a case where the while(true) approach actually performs better or equal?
While writing C code for ARM, I would prefer if() else if() or switch command. The while(true) + if() would add extra condition checking and would be slower.
just ... from a newbie.
Warm Regards,
Mukund Deshmukh, Beta Computronics Pvt Ltd. 10/1 IT Park, Parsodi, Nagpur -440022 India. Web site - http://betacomp.com