clarify the purpose of this project
[nyanglibc.git] / signal / sigismem.s
blob5d8a8226f9b93a0dda5c9ed08c0f7e2fe11ebbf2
1 .text
2 .p2align 4,,15
3 .globl sigismember
4 .hidden sigismember
5 .type sigismember, @function
6 sigismember:
7 leal -1(%rsi), %ecx
8 cmpl $63, %ecx
9 ja .L5
10 testq %rdi, %rdi
11 je .L5
12 movl $1, %eax
13 salq %cl, %rax
14 testq %rax, (%rdi)
15 setne %al
16 movzbl %al, %eax
17 ret
18 .p2align 4,,10
19 .p2align 3
20 .L5:
21 movq __libc_errno@gottpoff(%rip), %rax
22 movl $22, %fs:(%rax)
23 movl $-1, %eax
24 ret
25 .size sigismember, .-sigismember