git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update for HEAD-2003091401
[reactos.git]
/
lib
/
string
/
i386
/
tcsnlen.h
1
/* $Id$
2
*/
3
4
#include "tchar.h"
5
6
.globl _tcsnlen
7
8
_tcsnlen:
9
push %edi
10
mov 0x8(%esp), %edi
11
mov 0xC(%esp), %ecx
12
xor %eax, %eax
13
test %ecx, %ecx
14
jz .L1
15
mov %ecx, %edx
16
17
cld
18
19
repne _tscas
20
21
sete %al
22
sub %ecx, %edx
23
sub %eax, %edx
24
mov %edx, %eax
25
26
.L1:
27
pop %edi
28
ret
29
30
/* EOF */