clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_attr_setinheritsched.shared.s
bloba3b608f2d67ad07c5401a0c82c91471594b908f3
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __pthread_attr_setinheritsched
9 .type __pthread_attr_setinheritsched, @function
10 __pthread_attr_setinheritsched:
11 cmpl $1, %esi
12 movl $22, %eax
13 ja .L1
14 testl %esi, %esi
15 movl 8(%rdi), %eax
16 jne .L6
17 andl $-3, %eax
18 movl %eax, 8(%rdi)
19 xorl %eax, %eax
20 .L1:
21 rep ret
22 .p2align 4,,10
23 .p2align 3
24 .L6:
25 orl $2, %eax
26 movl %eax, 8(%rdi)
27 xorl %eax, %eax
28 ret
29 .size __pthread_attr_setinheritsched, .-__pthread_attr_setinheritsched
30 .globl pthread_attr_setinheritsched
31 .set pthread_attr_setinheritsched,__pthread_attr_setinheritsched