clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_setaffinity.shared.s
blob2f41300fbf39633f6624526001049e89983f6bff
1 .text
2 #APP
3 .symver __pthread_setaffinity_new,pthread_setaffinity_np@@GLIBC_2.3.4
4 .symver __pthread_setaffinity_old,pthread_setaffinity_np@GLIBC_2.3.3
5 #NO_APP
6 .p2align 4,,15
7 .globl __pthread_setaffinity_new
8 .type __pthread_setaffinity_new, @function
9 __pthread_setaffinity_new:
10 movl 720(%rdi), %edi
11 movl $203, %eax
12 #APP
13 # 33 "pthread_setaffinity.c" 1
14 syscall
16 # 0 "" 2
17 #NO_APP
18 movl %eax, %edx
19 negl %edx
20 cmpl $-4096, %eax
21 movl $0, %eax
22 cmova %edx, %eax
23 ret
24 .size __pthread_setaffinity_new, .-__pthread_setaffinity_new
25 .p2align 4,,15
26 .globl __pthread_setaffinity_old
27 .type __pthread_setaffinity_old, @function
28 __pthread_setaffinity_old:
29 movq %rsi, %rdx
30 movl $128, %esi
31 jmp __pthread_setaffinity_new@PLT
32 .size __pthread_setaffinity_old, .-__pthread_setaffinity_old