mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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 */
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue