clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_mutex_destroy.s
blobb8e64496bfbde12cc31696a3c2c6e3a36c91b8f2
1 .text
2 .p2align 4,,15
3 .globl __pthread_mutex_destroy
4 .type __pthread_mutex_destroy, @function
5 __pthread_mutex_destroy:
6 movl 16(%rdi), %eax
7 testb $16, %al
8 jne .L2
9 movl 12(%rdi), %edx
10 movl $16, %eax
11 testl %edx, %edx
12 jne .L1
13 .L2:
14 movl $-1, 16(%rdi)
15 xorl %eax, %eax
16 .L1:
17 rep ret
18 .size __pthread_mutex_destroy, .-__pthread_mutex_destroy
19 .weak pthread_mutex_destroy
20 .set pthread_mutex_destroy,__pthread_mutex_destroy