clarify the purpose of this project
[nyanglibc.git] / libio / putc_u.s
blob91f5cd728171a53dd8b2e94e9c2714b7c2577e98
1 .text
2 .p2align 4,,15
3 .globl __putc_unlocked
4 .hidden __putc_unlocked
5 .type __putc_unlocked, @function
6 __putc_unlocked:
7 movq 40(%rsi), %rcx
8 cmpq 48(%rsi), %rcx
9 movq %rsi, %rdx
10 movzbl %dil, %eax
11 jnb .L4
12 leaq 1(%rcx), %rsi
13 movq %rsi, 40(%rdx)
14 movb %dil, (%rcx)
15 ret
16 .p2align 4,,10
17 .p2align 3
18 .L4:
19 movl %eax, %esi
20 movq %rdx, %rdi
21 jmp __overflow
22 .size __putc_unlocked, .-__putc_unlocked
23 .weak putc_unlocked
24 .hidden putc_unlocked
25 .set putc_unlocked,__putc_unlocked
26 .hidden __overflow