mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 16:35:49 +00:00
[CRT]
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:
parent
93d7931412
commit
68fce95f21
1 changed files with 4 additions and 2 deletions
|
@ -29,9 +29,11 @@ FUNC _tcslen
|
||||||
/* Now compare the characters until a 0 is found */
|
/* Now compare the characters until a 0 is found */
|
||||||
repne _tscas
|
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
|
not ecx
|
||||||
lea eax, [ecx-1]
|
lea eax, [ecx - 1]
|
||||||
|
|
||||||
/* Restore eflags/edi and return the result */
|
/* Restore eflags/edi and return the result */
|
||||||
popfd
|
popfd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue