Fix a typo in a comment and make it clearer, what we do here.
CORE-10754 #resolve
svn path=/trunk/; revision=70450
/* Now compare the characters until a 0 is found */\r
repne _tscas\r
\r
- /* Calculate the count (eax = -ecx - 1) */\r
+ /* Calculate the count. For n characters, we do (n + 1) comparisons. Initial\r
+ value of ecx was -1, so end value of ecx is (-1 - (n + 1)) = -(n + 2).\r
+ => n = -ecx - 2 = ~ecx - 1 */\r
not ecx\r
- lea eax, [ecx-1]\r
+ lea eax, [ecx - 1]\r
\r
/* Restore eflags/edi and return the result */\r
popfd\r