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