Menu

#1 Basic C code optimization

open
nobody
5
2010-06-23
2010-06-23
Phil
No

E.g., instead of for(i=0; i<max; ++i), try i=max;/*or +1?*/ while(--i) loops (does this actually speed up with modern compilers?) as well as [i%2] -> [(i&1)] that kind of stuff

Discussion


Log in to post a comment.