clarify the purpose of this project
[nyanglibc.git] / signal / sigorset.s
blobd87791878d24fa018a7ec8a588b31dbd2356ab79
1 .text
2 .p2align 4,,15
3 .globl sigorset
4 .type sigorset, @function
5 sigorset:
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 orq (%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 sigorset, .-sigorset