clarify the purpose of this project
[nyanglibc.git] / signal / sigandset.shared.s
blob42f7f9598566d727222784801e16e27b8a5a415b
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 sigandset
9 .type sigandset, @function
10 sigandset:
11 testq %rsi, %rsi
12 sete %cl
13 testq %rdx, %rdx
14 sete %al
15 orb %al, %cl
16 jne .L5
17 testq %rdi, %rdi
18 je .L5
19 movq (%rsi), %rax
20 andq (%rdx), %rax
21 movq %rax, (%rdi)
22 xorl %eax, %eax
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L5:
27 movq __libc_errno@gottpoff(%rip), %rax
28 movl $22, %fs:(%rax)
29 movl $-1, %eax
30 ret
31 .size sigandset, .-sigandset