clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_rwlock_init.shared.s
blob14c053b8a1b65e6dae3a7230a4363067a2ca7665
1 .text
2 .p2align 4,,15
3 .globl __pthread_rwlock_init
4 .type __pthread_rwlock_init, @function
5 __pthread_rwlock_init:
6 pxor %xmm0, %xmm0
7 leaq default_rwlockattr(%rip), %rax
8 testq %rsi, %rsi
9 movq $0, 48(%rdi)
10 cmove %rax, %rsi
11 movups %xmm0, 16(%rdi)
12 movups %xmm0, (%rdi)
13 movups %xmm0, 32(%rdi)
14 movl (%rsi), %eax
15 movl 4(%rsi), %edx
16 movl %eax, 48(%rdi)
17 xorl %eax, %eax
18 testl %edx, %edx
19 setne %al
20 movl %eax, 28(%rdi)
21 xorl %eax, %eax
22 ret
23 .size __pthread_rwlock_init, .-__pthread_rwlock_init
24 .globl pthread_rwlock_init
25 .set pthread_rwlock_init,__pthread_rwlock_init
26 .section .rodata.cst8,"aM",@progbits,8
27 .align 8
28 .type default_rwlockattr, @object
29 .size default_rwlockattr, 8
30 default_rwlockattr:
31 .zero 8