clarify the purpose of this project
[nyanglibc.git] / misc / eventfd_read.shared.s
blobd2f7d85e5afda01c626b629f7df05bf73c8987c8
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 eventfd_read
9 .type eventfd_read, @function
10 eventfd_read:
11 subq $8, %rsp
12 movl $8, %edx
13 call __GI___read
14 cmpq $8, %rax
15 setne %al
16 addq $8, %rsp
17 movzbl %al, %eax
18 negl %eax
19 ret
20 .size eventfd_read, .-eventfd_read