clarify the purpose of this project
[nyanglibc.git] / libio / fputc_u.shared.s
blobd8b9598a7e701fcbf7ab4bbff091d3fc5253c6a0
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_fputc_unlocked
9 .hidden __GI_fputc_unlocked
10 .type __GI_fputc_unlocked, @function
11 __GI_fputc_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 __GI_fputc_unlocked, .-__GI_fputc_unlocked
28 .globl fputc_unlocked
29 .set fputc_unlocked,__GI_fputc_unlocked