clarify the purpose of this project
[nyanglibc.git] / wctype / iswctype.shared.s
blob59b6add746b64ff9c15740d64c1861b3f4788b64
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __GI___iswctype
9 .hidden __GI___iswctype
10 .type __GI___iswctype, @function
11 __GI___iswctype:
12 xorl %eax, %eax
13 testq %rsi, %rsi
14 je .L1
15 movl (%rsi), %ecx
16 movl %edi, %edx
17 shrl %cl, %edx
18 cmpl 4(%rsi), %edx
19 jnb .L1
20 addl $5, %edx
21 movl (%rsi,%rdx,4), %edx
22 testl %edx, %edx
23 je .L1
24 movl 8(%rsi), %ecx
25 movl %edi, %r8d
26 shrl %cl, %r8d
27 movl %r8d, %ecx
28 andl 12(%rsi), %ecx
29 leaq (%rsi,%rcx,4), %rcx
30 movl (%rcx,%rdx), %edx
31 testl %edx, %edx
32 je .L1
33 movl %edi, %eax
34 movl %edi, %ecx
35 shrl $5, %eax
36 andl 16(%rsi), %eax
37 leaq (%rsi,%rax,4), %rax
38 movl (%rax,%rdx), %eax
39 shrl %cl, %eax
40 andl $1, %eax
41 .L1:
42 rep ret
43 .size __GI___iswctype, .-__GI___iswctype
44 .globl __iswctype
45 .set __iswctype,__GI___iswctype
46 .weak iswctype
47 .set iswctype,__iswctype