clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_mutexattr_setprotocol.shared.s
blob638650427f0c748187e337a8e6bb36887eaf1b46
1 .text
2 .p2align 4,,15
3 .globl pthread_mutexattr_setprotocol
4 .type pthread_mutexattr_setprotocol, @function
5 pthread_mutexattr_setprotocol:
6 cmpl $2, %esi
7 ja .L3
8 movl (%rdi), %eax
9 sall $28, %esi
10 andl $-805306369, %eax
11 orl %eax, %esi
12 xorl %eax, %eax
13 movl %esi, (%rdi)
14 ret
15 .p2align 4,,10
16 .p2align 3
17 .L3:
18 movl $22, %eax
19 ret
20 .size pthread_mutexattr_setprotocol, .-pthread_mutexattr_setprotocol