clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_attr_setdetachstate.s
blobe65600dda70d8bef02d515e3f12b10dfaa8706e8
1 .text
2 .p2align 4,,15
3 .globl __pthread_attr_setdetachstate
4 .type __pthread_attr_setdetachstate, @function
5 __pthread_attr_setdetachstate:
6 cmpl $1, %esi
7 je .L2
8 testl %esi, %esi
9 jne .L8
10 andl $-2, 8(%rdi)
11 xorl %eax, %eax
12 ret
13 .p2align 4,,10
14 .p2align 3
15 .L2:
16 orl $1, 8(%rdi)
17 xorl %eax, %eax
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L8:
22 movl $22, %eax
23 ret
24 .size __pthread_attr_setdetachstate, .-__pthread_attr_setdetachstate
25 .globl pthread_attr_setdetachstate
26 .set pthread_attr_setdetachstate,__pthread_attr_setdetachstate