clarify the purpose of this project
[nyanglibc.git] / locale / coll-lookup.shared.s
blobf06ce846fc5112afb47c10dac8097272d3650c63
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 __collidx_table_lookup
9 .type __collidx_table_lookup, @function
10 __collidx_table_lookup:
11 movl (%rdi), %ecx
12 movl %esi, %edx
13 xorl %eax, %eax
14 shrl %cl, %edx
15 cmpl 4(%rdi), %edx
16 jnb .L1
17 addl $5, %edx
18 movl (%rdi,%rdx,4), %edx
19 testl %edx, %edx
20 je .L1
21 movl 8(%rdi), %ecx
22 movl %esi, %r8d
23 shrl %cl, %r8d
24 movl %r8d, %ecx
25 andl 12(%rdi), %ecx
26 leaq (%rdi,%rcx,4), %rcx
27 movl (%rcx,%rdx), %edx
28 testl %edx, %edx
29 je .L1
30 andl 16(%rdi), %esi
31 leaq (%rdi,%rsi,4), %rax
32 movl (%rax,%rdx), %eax
33 .L1:
34 rep ret
35 .size __collidx_table_lookup, .-__collidx_table_lookup
36 .p2align 4,,15
37 .globl __collseq_table_lookup
38 .type __collseq_table_lookup, @function
39 __collseq_table_lookup:
40 movl (%rdi), %ecx
41 movl %esi, %edx
42 movl $-1, %eax
43 shrl %cl, %edx
44 cmpl 4(%rdi), %edx
45 jnb .L9
46 addl $5, %edx
47 movl (%rdi,%rdx,4), %edx
48 testl %edx, %edx
49 je .L9
50 movl 8(%rdi), %ecx
51 movl %esi, %r8d
52 shrl %cl, %r8d
53 movl %r8d, %ecx
54 andl 12(%rdi), %ecx
55 leaq (%rdi,%rcx,4), %rcx
56 movl (%rcx,%rdx), %edx
57 testl %edx, %edx
58 je .L9
59 andl 16(%rdi), %esi
60 leaq (%rdi,%rsi,4), %rax
61 movl (%rax,%rdx), %eax
62 .L9:
63 rep ret
64 .size __collseq_table_lookup, .-__collseq_table_lookup