clarify the purpose of this project
[nyanglibc.git] / stdio-common / putw.s
blobbb7351ac5f1194c9972e03cc39f00acbc719e67a
1 .text
2 .p2align 4,,15
3 .globl putw
4 .type putw, @function
5 putw:
6 subq $24, %rsp
7 movq %rsi, %rcx
8 movl $1, %edx
9 movl %edi, 12(%rsp)
10 leaq 12(%rsp), %rdi
11 movl $4, %esi
12 call _IO_fwrite
13 testq %rax, %rax
14 sete %al
15 addq $24, %rsp
16 movzbl %al, %eax
17 negl %eax
18 ret
19 .size putw, .-putw
20 .hidden _IO_fwrite