clarify the purpose of this project
[nyanglibc.git] / libio / getc_u.shared.s
blob95739cc55827284638131bfd014e7c23bbd33898
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 __getc_unlocked
9 .hidden __getc_unlocked
10 .type __getc_unlocked, @function
11 __getc_unlocked:
12 movq 8(%rdi), %rax
13 cmpq 16(%rdi), %rax
14 jnb .L4
15 leaq 1(%rax), %rdx
16 movq %rdx, 8(%rdi)
17 movzbl (%rax), %eax
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L4:
22 jmp __GI___uflow
23 .size __getc_unlocked, .-__getc_unlocked
24 .weak __GI_getc_unlocked
25 .hidden __GI_getc_unlocked
26 .set __GI_getc_unlocked,__getc_unlocked
27 .weak getc_unlocked
28 .set getc_unlocked,__GI_getc_unlocked
29 .weak fgetc_unlocked
30 .set fgetc_unlocked,__getc_unlocked