clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_cond_init.s
blob60e18fed3398b74f32c5772b4345417b747f8f33
1 .text
2 .p2align 4,,15
3 .globl __pthread_cond_init
4 .hidden __pthread_cond_init
5 .type __pthread_cond_init, @function
6 __pthread_cond_init:
7 pxor %xmm0, %xmm0
8 testq %rsi, %rsi
9 movups %xmm0, (%rdi)
10 movups %xmm0, 16(%rdi)
11 movups %xmm0, 32(%rdi)
12 je .L10
13 movl (%rsi), %eax
14 testb $1, %al
15 je .L4
16 orl $1, 36(%rdi)
17 .L4:
18 testb $2, %al
19 je .L10
20 orl $2, 36(%rdi)
21 .L10:
22 xorl %eax, %eax
23 ret
24 .size __pthread_cond_init, .-__pthread_cond_init
25 .weak pthread_cond_init
26 .set pthread_cond_init,__pthread_cond_init