clarify the purpose of this project
[nyanglibc.git] / signal / sigorset.shared.s
blob65a6748f15d8dc6ec68c5f1f50664dd3e4f418a2
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 sigorset
9 .type sigorset, @function
10 sigorset:
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 orq (%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 sigorset, .-sigorset