I assume you mean 'words' instead of 'bytes'?
I tried a few variations using the free/lite version of BoostC, just for fun;
Code:if(index < 3) // 7 words index++; // else // index = 0; //Code:index = index++ & 3; // 6 wordsCode:index = ++index & 3; // 5 wordsCode:index = 3 & ++index; // 4 wordsCode:index++; // 3 words index &= 3; //Now I'm really curious about the assembly code that PBP generated...Code:index++; // 2 words index.2 = 0; //
Bookmarks