clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_attr_setaffinity.shared.s
blobf89d379c74e550131d33c1755ae053593a05a4ee
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __pthread_attr_setaffinity_np,pthread_attr_setaffinity_np@@GLIBC_2.32
7 .symver __pthread_attr_setaffinity_alias,pthread_attr_setaffinity_np@GLIBC_2.3.4
8 .symver __pthread_attr_setaffinity_old,pthread_attr_setaffinity_np@GLIBC_2.3.3
9 #NO_APP
10 .p2align 4,,15
11 .globl __GI___pthread_attr_setaffinity_np
12 .hidden __GI___pthread_attr_setaffinity_np
13 .type __GI___pthread_attr_setaffinity_np, @function
14 __GI___pthread_attr_setaffinity_np:
15 pushq %r13
16 pushq %r12
17 pushq %rbp
18 pushq %rbx
19 movq %rdi, %rbx
20 subq $8, %rsp
21 testq %rdx, %rdx
22 je .L8
23 testq %rsi, %rsi
24 movq %rsi, %r12
25 jne .L2
26 .L8:
27 movq 40(%rbx), %rax
28 xorl %ebp, %ebp
29 testq %rax, %rax
30 je .L1
31 movq (%rax), %rdi
32 call free@PLT
33 movq 40(%rbx), %rax
34 movq $0, (%rax)
35 movq $0, 8(%rax)
36 .L1:
37 addq $8, %rsp
38 movl %ebp, %eax
39 popq %rbx
40 popq %rbp
41 popq %r12
42 popq %r13
43 ret
44 .p2align 4,,10
45 .p2align 3
46 .L2:
47 movq %rdx, %r13
48 call __pthread_attr_extension
49 testl %eax, %eax
50 movl %eax, %ebp
51 jne .L1
52 movq 40(%rbx), %rax
53 cmpq %r12, 8(%rax)
54 movq (%rax), %rdi
55 je .L5
56 movq %r12, %rsi
57 call realloc@PLT
58 testq %rax, %rax
59 movq %rax, %rdi
60 je .L7
61 movq 40(%rbx), %rax
62 movq %rdi, (%rax)
63 movq %r12, 8(%rax)
64 .L5:
65 movq %r12, %rdx
66 movq %r13, %rsi
67 call __GI_memcpy@PLT
68 addq $8, %rsp
69 movl %ebp, %eax
70 popq %rbx
71 popq %rbp
72 popq %r12
73 popq %r13
74 ret
75 .p2align 4,,10
76 .p2align 3
77 .L7:
78 movl $12, %ebp
79 jmp .L1
80 .size __GI___pthread_attr_setaffinity_np, .-__GI___pthread_attr_setaffinity_np
81 .globl __pthread_attr_setaffinity_np
82 .set __pthread_attr_setaffinity_np,__GI___pthread_attr_setaffinity_np
83 .globl __pthread_attr_setaffinity_alias
84 .set __pthread_attr_setaffinity_alias,__pthread_attr_setaffinity_np
85 .p2align 4,,15
86 .globl __pthread_attr_setaffinity_old
87 .type __pthread_attr_setaffinity_old, @function
88 __pthread_attr_setaffinity_old:
89 movq %rsi, %rdx
90 movl $128, %esi
91 jmp __GI___pthread_attr_setaffinity_np
92 .size __pthread_attr_setaffinity_old, .-__pthread_attr_setaffinity_old
93 .hidden __pthread_attr_extension