clarify the purpose of this project
[nyanglibc.git] / signal / sigandset.s
blob97f303338e8af4b9b42fe846d56e6a1e47738853
1 .text
2 .p2align 4,,15
3 .globl sigandset
4 .type sigandset, @function
5 sigandset:
6 testq %rsi, %rsi
7 sete %cl
8 testq %rdx, %rdx
9 sete %al
10 orb %al, %cl
11 jne .L5
12 testq %rdi, %rdi
13 je .L5
14 movq (%rsi), %rax
15 andq (%rdx), %rax
16 movq %rax, (%rdi)
17 xorl %eax, %eax
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L5:
22 movq __libc_errno@gottpoff(%rip), %rax
23 movl $22, %fs:(%rax)
24 movl $-1, %eax
25 ret
26 .size sigandset, .-sigandset