clarify the purpose of this project
[nyanglibc.git] / string / basename.shared.s
blob0921da7ed03f728a54d237ca3b8384df01e3e1c1
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___basename
9 .hidden __GI___basename
10 .type __GI___basename, @function
11 __GI___basename:
12 pushq %rbx
13 movl $47, %esi
14 movq %rdi, %rbx
15 call __GI_strrchr
16 leaq 1(%rax), %rdx
17 testq %rax, %rax
18 movq %rbx, %rax
19 popq %rbx
20 cmovne %rdx, %rax
21 ret
22 .size __GI___basename, .-__GI___basename
23 .globl __basename
24 .set __basename,__GI___basename
25 .weak __GI_basename
26 .hidden __GI_basename
27 .set __GI_basename,__basename
28 .weak basename
29 .set basename,__GI_basename