clarify the purpose of this project
[nyanglibc.git] / signal / allocrtsig.s
blobf9b37d963eaae9cf0fe14b91bff633463a4d66f6
1 .text
2 .p2align 4,,15
3 .globl __libc_current_sigrtmin
4 .hidden __libc_current_sigrtmin
5 .type __libc_current_sigrtmin, @function
6 __libc_current_sigrtmin:
7 movl current_rtmin(%rip), %eax
8 ret
9 .size __libc_current_sigrtmin, .-__libc_current_sigrtmin
10 .globl __libc_current_sigrtmin_private
11 .set __libc_current_sigrtmin_private,__libc_current_sigrtmin
12 .p2align 4,,15
13 .globl __libc_current_sigrtmax
14 .hidden __libc_current_sigrtmax
15 .type __libc_current_sigrtmax, @function
16 __libc_current_sigrtmax:
17 movl current_rtmax(%rip), %eax
18 ret
19 .size __libc_current_sigrtmax, .-__libc_current_sigrtmax
20 .globl __libc_current_sigrtmax_private
21 .set __libc_current_sigrtmax_private,__libc_current_sigrtmax
22 .p2align 4,,15
23 .globl __libc_allocate_rtsig
24 .type __libc_allocate_rtsig, @function
25 __libc_allocate_rtsig:
26 movl current_rtmin(%rip), %edx
27 cmpl $-1, %edx
28 je .L7
29 movl current_rtmax(%rip), %eax
30 cmpl %eax, %edx
31 jg .L8
32 testl %edi, %edi
33 jne .L9
34 leal -1(%rax), %edx
35 movl %edx, current_rtmax(%rip)
36 ret
37 .p2align 4,,10
38 .p2align 3
39 .L9:
40 leal 1(%rdx), %eax
41 movl %eax, current_rtmin(%rip)
42 movl %edx, %eax
43 ret
44 .p2align 4,,10
45 .p2align 3
46 .L8:
47 movl $-1, %eax
48 ret
49 .p2align 4,,10
50 .p2align 3
51 .L7:
52 movl %edx, %eax
53 ret
54 .size __libc_allocate_rtsig, .-__libc_allocate_rtsig
55 .globl __libc_allocate_rtsig_private
56 .set __libc_allocate_rtsig_private,__libc_allocate_rtsig
57 .data
58 .align 4
59 .type current_rtmax, @object
60 .size current_rtmax, 4
61 current_rtmax:
62 .long 64
63 .align 4
64 .type current_rtmin, @object
65 .size current_rtmin, 4
66 current_rtmin:
67 .long 34