clarify the purpose of this project
[nyanglibc.git] / nptl / sem_init.s
blobc685e8058ada3fa55314a33e6a356e30a49771b7
1 .text
2 .p2align 4,,15
3 .globl __new_sem_init
4 .type __new_sem_init, @function
5 __new_sem_init:
6 testl %edx, %edx
7 js .L8
8 movl %edx, %eax
9 testl %esi, %esi
10 movq %rax, (%rdi)
11 movl $128, %eax
12 cmovne %eax, %esi
13 xorl %eax, %eax
14 movl %esi, 8(%rdi)
15 ret
16 .p2align 4,,10
17 .p2align 3
18 .L8:
19 movq errno@gottpoff(%rip), %rax
20 movl $22, %fs:(%rax)
21 movl $-1, %eax
22 ret
23 .size __new_sem_init, .-__new_sem_init
24 .weak sem_init
25 .set sem_init,__new_sem_init