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