clarify the purpose of this project
[nyanglibc.git] / nptl / thrd_sleep.shared.s
blob57388a7e7aabb5829fba9d93b598e522c9969e93
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __thrd_sleep
9 .type __thrd_sleep, @function
10 __thrd_sleep:
11 subq $8, %rsp
12 movq %rdi, %rdx
13 movq %rsi, %rcx
14 xorl %edi, %edi
15 xorl %esi, %esi
16 call __GI___clock_nanosleep
17 testl %eax, %eax
18 je .L1
19 cmpl $4, %eax
20 sete %al
21 movzbl %al, %eax
22 subl $2, %eax
23 .L1:
24 addq $8, %rsp
25 ret
26 .size __thrd_sleep, .-__thrd_sleep
27 .weak thrd_sleep
28 .set thrd_sleep,__thrd_sleep