Fix a typo in a comment and make it clearer, what we do here.
CORE-10754 #resolve

svn path=/trunk/; revision=70450
This commit is contained in:
Timo Kreuzer 2015-12-27 20:24:04 +00:00
parent 93d7931412
commit 68fce95f21

View file

@ -29,9 +29,11 @@ FUNC _tcslen
/* Now compare the characters until a 0 is found */
repne _tscas
/* Calculate the count (eax = -ecx - 1) */
/* Calculate the count. For n characters, we do (n + 1) comparisons. Initial
value of ecx was -1, so end value of ecx is (-1 - (n + 1)) = -(n + 2).
=> n = -ecx - 2 = ~ecx - 1 */
not ecx
lea eax, [ecx-1]
lea eax, [ecx - 1]
/* Restore eflags/edi and return the result */
popfd