mirror of
https://github.com/reactos/reactos.git
synced 2024-09-22 02:30:33 +00:00
a3623f23de
- Make all x86assembly ML compatible - Remove memcpy, it was duplicated from memmove, copy the label instead - Guard some code against compilation on msvc, as these functions are intrinsics on MSVC and cannot be implemented - Fix some x64 assembly (don't modify stack below rsp) svn path=/branches/cmake-bringup/; revision=49421
33 lines
313 B
C
33 lines
313 B
C
/* $Id$
|
|
*/
|
|
|
|
#include "tchar.h"
|
|
#include <reactos/asm.h>
|
|
|
|
PUBLIC _tcslen
|
|
.code
|
|
|
|
_tcslen:
|
|
push edi
|
|
mov edi, [esp + 8]
|
|
xor eax, eax
|
|
test edi, edi
|
|
jz _tcslen_end
|
|
|
|
mov ecx, -1
|
|
cld
|
|
|
|
repne _tscas
|
|
|
|
not ecx
|
|
dec ecx
|
|
|
|
mov eax, ecx
|
|
|
|
_tcslen_end:
|
|
pop edi
|
|
ret
|
|
|
|
END
|
|
/* EOF */
|