clarify the purpose of this project
[nyanglibc.git] / string / strncase_l-nonascii.shared.s
blob7f1299e93f9e4558afcb775344c82892c2004052
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 __strncasecmp_l_nonascii
9 .type __strncasecmp_l_nonascii, @function
10 __strncasecmp_l_nonascii:
11 cmpq %rsi, %rdi
12 je .L5
13 testq %rdx, %rdx
14 je .L5
15 movq 112(%rcx), %r8
16 xorl %ecx, %ecx
17 jmp .L3
18 .p2align 4,,10
19 .p2align 3
20 .L4:
21 testb %r10b, %r10b
22 je .L1
23 addq $1, %rcx
24 cmpq %rcx, %rdx
25 je .L1
26 .L3:
27 movzbl (%rdi,%rcx), %eax
28 movzbl (%rsi,%rcx), %r9d
29 movq %rax, %r10
30 movl (%r8,%rax,4), %eax
31 subl (%r8,%r9,4), %eax
32 je .L4
33 rep ret
34 .p2align 4,,10
35 .p2align 3
36 .L5:
37 xorl %eax, %eax
38 .L1:
39 rep ret
40 .size __strncasecmp_l_nonascii, .-__strncasecmp_l_nonascii