clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_getaffinity.shared.s
blob6ce1c26406c38a65b555a9a9b22350b32bc7425a
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __pthread_getaffinity_np,pthread_getaffinity_np@@GLIBC_2.32
7 .symver __pthread_getaffinity_alias,pthread_getaffinity_np@GLIBC_2.3.4
8 .symver __pthread_getaffinity_old,pthread_getaffinity_np@GLIBC_2.3.3
9 #NO_APP
10 .p2align 4,,15
11 .globl __GI___pthread_getaffinity_np
12 .hidden __GI___pthread_getaffinity_np
13 .type __GI___pthread_getaffinity_np, @function
14 __GI___pthread_getaffinity_np:
15 movq %rsi, %r8
16 cmpq $2147483647, %rsi
17 movl $2147483647, %esi
18 movq %rdx, %r9
19 cmovbe %r8, %rsi
20 movl 720(%rdi), %edi
21 movl $204, %eax
22 #APP
23 # 34 "pthread_getaffinity.c" 1
24 syscall
26 # 0 "" 2
27 #NO_APP
28 cmpl $-4096, %eax
29 jbe .L2
30 negl %eax
31 ret
32 .p2align 4,,10
33 .p2align 3
34 .L2:
35 cltq
36 movq %r8, %rdx
37 subq $8, %rsp
38 leaq (%r9,%rax), %rdi
39 subq %rax, %rdx
40 xorl %esi, %esi
41 call __GI_memset@PLT
42 xorl %eax, %eax
43 addq $8, %rsp
44 ret
45 .size __GI___pthread_getaffinity_np, .-__GI___pthread_getaffinity_np
46 .globl __pthread_getaffinity_np
47 .set __pthread_getaffinity_np,__GI___pthread_getaffinity_np
48 .globl __pthread_getaffinity_alias
49 .set __pthread_getaffinity_alias,__pthread_getaffinity_np
50 .p2align 4,,15
51 .globl __pthread_getaffinity_old
52 .type __pthread_getaffinity_old, @function
53 __pthread_getaffinity_old:
54 movq %rsi, %rdx
55 movl $128, %esi
56 jmp __GI___pthread_getaffinity_np
57 .size __pthread_getaffinity_old, .-__pthread_getaffinity_old