clarify the purpose of this project
[nyanglibc.git] / signal / sigisempty.shared.s
blob7b0019daeed4e9fa9853813b1a443a7a0ae753b3
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 sigisemptyset
9 .type sigisemptyset, @function
10 sigisemptyset:
11 testq %rdi, %rdi
12 je .L5
13 movl (%rdi), %edx
14 xorl %eax, %eax
15 testl %edx, %edx
16 sete %al
17 ret
18 .L5:
19 movq __libc_errno@gottpoff(%rip), %rax
20 movl $22, %fs:(%rax)
21 movl $-1, %eax
22 ret
23 .size sigisemptyset, .-sigisemptyset