clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_attr_setdetachstate.shared.s
blob98f94319b5f6a8d0cebd2dddd6e3b360009bb00c
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_setdetachstate
9 .type __pthread_attr_setdetachstate, @function
10 __pthread_attr_setdetachstate:
11 cmpl $1, %esi
12 je .L2
13 testl %esi, %esi
14 jne .L8
15 andl $-2, 8(%rdi)
16 xorl %eax, %eax
17 ret
18 .p2align 4,,10
19 .p2align 3
20 .L2:
21 orl $1, 8(%rdi)
22 xorl %eax, %eax
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L8:
27 movl $22, %eax
28 ret
29 .size __pthread_attr_setdetachstate, .-__pthread_attr_setdetachstate
30 .globl pthread_attr_setdetachstate
31 .set pthread_attr_setdetachstate,__pthread_attr_setdetachstate