Uh, I don’t know how I may introduce this one. I don’t know if I should call it a horrific failure or just hilarious. This is what comes out of VS2008 for a signed short division:
symSend = mergedNGram % numCases;
mergedNGram /= numCases;
The produced code:
00024 0f bf 86 2c 04
[...]