mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 13:56:16 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
30 lines
269 B
C
30 lines
269 B
C
/* $Id$
|
|
*/
|
|
|
|
#include "tchar.h"
|
|
|
|
.globl _tcslen
|
|
|
|
_tcslen:
|
|
push %edi
|
|
mov 0x8(%esp), %edi
|
|
xor %eax, %eax
|
|
test %edi,%edi
|
|
jz _tcslen_end
|
|
|
|
mov $-1, %ecx
|
|
cld
|
|
|
|
repne _tscas
|
|
|
|
not %ecx
|
|
dec %ecx
|
|
|
|
mov %ecx, %eax
|
|
|
|
_tcslen_end:
|
|
pop %edi
|
|
ret
|
|
|
|
/* EOF */
|