clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_getaffinity.s
bloba5ffcfc988aae1eee6c4f1c84ba12248337cc02e
1 .text
2 .p2align 4,,15
3 .globl __pthread_getaffinity_np
4 .hidden __pthread_getaffinity_np
5 .type __pthread_getaffinity_np, @function
6 __pthread_getaffinity_np:
7 movq %rsi, %r8
8 cmpq $2147483647, %rsi
9 movl $2147483647, %esi
10 movq %rdx, %r9
11 cmovbe %r8, %rsi
12 movl 720(%rdi), %edi
13 movl $204, %eax
14 #APP
15 # 34 "pthread_getaffinity.c" 1
16 syscall
18 # 0 "" 2
19 #NO_APP
20 cmpl $-4096, %eax
21 jbe .L2
22 negl %eax
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L2:
27 cltq
28 movq %r8, %rdx
29 subq $8, %rsp
30 leaq (%r9,%rax), %rdi
31 subq %rax, %rdx
32 xorl %esi, %esi
33 call memset@PLT
34 xorl %eax, %eax
35 addq $8, %rsp
36 ret
37 .size __pthread_getaffinity_np, .-__pthread_getaffinity_np
38 .weak pthread_getaffinity_np
39 .set pthread_getaffinity_np,__pthread_getaffinity_np