clarify the purpose of this project
[nyanglibc.git] / libio / putc_u.shared.s
blob44a09da105dc6207132bb35548a7f37f13d1c6bb
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 __putc_unlocked
9 .hidden __putc_unlocked
10 .type __putc_unlocked, @function
11 __putc_unlocked:
12 movq 40(%rsi), %rcx
13 cmpq 48(%rsi), %rcx
14 movq %rsi, %rdx
15 movzbl %dil, %eax
16 jnb .L4
17 leaq 1(%rcx), %rsi
18 movq %rsi, 40(%rdx)
19 movb %dil, (%rcx)
20 ret
21 .p2align 4,,10
22 .p2align 3
23 .L4:
24 movl %eax, %esi
25 movq %rdx, %rdi
26 jmp __GI___overflow
27 .size __putc_unlocked, .-__putc_unlocked
28 .weak __GI_putc_unlocked
29 .hidden __GI_putc_unlocked
30 .set __GI_putc_unlocked,__putc_unlocked
31 .weak putc_unlocked
32 .set putc_unlocked,__GI_putc_unlocked