clarify the purpose of this project
[nyanglibc.git] / signal / sigsetops.shared.s
blob3796d70a12c075205156d4935a47172996f14fd5
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __sigismember_compat,__sigismember@GLIBC_2.2.5
7 .symver __sigaddset_compat,__sigaddset@GLIBC_2.2.5
8 .symver __sigdelset_compat,__sigdelset@GLIBC_2.2.5
9 #NO_APP
10 .section .text.compat,"ax",@progbits
11 .p2align 4,,15
12 .globl __sigismember_compat
13 .type __sigismember_compat, @function
14 __sigismember_compat:
15 leal -1(%rsi), %eax
16 addl $62, %esi
17 cltd
18 shrl $26, %edx
19 leal (%rax,%rdx), %ecx
20 andl $63, %ecx
21 subl %edx, %ecx
22 movl $1, %edx
23 salq %cl, %rdx
24 testl %eax, %eax
25 cmovns %eax, %esi
26 xorl %eax, %eax
27 sarl $6, %esi
28 movslq %esi, %rsi
29 testq %rdx, (%rdi,%rsi,8)
30 setne %al
31 ret
32 .size __sigismember_compat, .-__sigismember_compat
33 .p2align 4,,15
34 .globl __sigaddset_compat
35 .type __sigaddset_compat, @function
36 __sigaddset_compat:
37 leal 62(%rsi), %eax
38 subl $1, %esi
39 movl %esi, %edx
40 cmovns %esi, %eax
41 sarl $31, %edx
42 shrl $26, %edx
43 sarl $6, %eax
44 leal (%rsi,%rdx), %ecx
45 cltq
46 andl $63, %ecx
47 subl %edx, %ecx
48 movl $1, %edx
49 salq %cl, %rdx
50 orq %rdx, (%rdi,%rax,8)
51 xorl %eax, %eax
52 ret
53 .size __sigaddset_compat, .-__sigaddset_compat
54 .p2align 4,,15
55 .globl __sigdelset_compat
56 .type __sigdelset_compat, @function
57 __sigdelset_compat:
58 leal 62(%rsi), %eax
59 subl $1, %esi
60 movl %esi, %edx
61 cmovns %esi, %eax
62 sarl $31, %edx
63 shrl $26, %edx
64 sarl $6, %eax
65 leal (%rsi,%rdx), %ecx
66 cltq
67 andl $63, %ecx
68 subl %edx, %ecx
69 movq $-2, %rdx
70 rolq %cl, %rdx
71 andq %rdx, (%rdi,%rax,8)
72 xorl %eax, %eax
73 ret
74 .size __sigdelset_compat, .-__sigdelset_compat