clarify the purpose of this project
[nyanglibc.git] / signal / sigaddset.shared.s
blobd6c004a8bc8f5f8abcbc8e4027d29a0981abc622
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 __GI_sigaddset
9 .hidden __GI_sigaddset
10 .type __GI_sigaddset, @function
11 __GI_sigaddset:
12 leal -1(%rsi), %ecx
13 cmpl $63, %ecx
14 ja .L2
15 testq %rdi, %rdi
16 je .L2
17 subl $32, %esi
18 cmpl $1, %esi
19 jbe .L2
20 movl $1, %eax
21 salq %cl, %rax
22 orq %rax, (%rdi)
23 xorl %eax, %eax
24 ret
25 .p2align 4,,10
26 .p2align 3
27 .L2:
28 movq __libc_errno@gottpoff(%rip), %rax
29 movl $22, %fs:(%rax)
30 movl $-1, %eax
31 ret
32 .size __GI_sigaddset, .-__GI_sigaddset
33 .globl sigaddset
34 .set sigaddset,__GI_sigaddset