clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_mutexattr_setpshared.shared.s
blob19e695ae2f4550a4ee2906c173e8a55235c945b8
1 .text
2 .p2align 4,,15
3 .globl pthread_mutexattr_setpshared
4 .type pthread_mutexattr_setpshared, @function
5 pthread_mutexattr_setpshared:
6 testl %esi, %esi
7 jne .L6
8 andl $2147483647, (%rdi)
9 xorl %eax, %eax
10 ret
11 .p2align 4,,10
12 .p2align 3
13 .L6:
14 cmpl $1, %esi
15 jne .L7
16 orl $-2147483648, (%rdi)
17 xorl %eax, %eax
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L7:
22 movl $22, %eax
23 ret
24 .size pthread_mutexattr_setpshared, .-pthread_mutexattr_setpshared