clarify the purpose of this project
[nyanglibc.git] / nptl / thrd_sleep.s
blobae72ab1adf4b6be302e97f6a6fc6935d836cdd7c
1 .text
2 .p2align 4,,15
3 .globl __thrd_sleep
4 .type __thrd_sleep, @function
5 __thrd_sleep:
6 subq $8, %rsp
7 movq %rdi, %rdx
8 movq %rsi, %rcx
9 xorl %edi, %edi
10 xorl %esi, %esi
11 call __clock_nanosleep
12 testl %eax, %eax
13 je .L1
14 cmpl $4, %eax
15 sete %al
16 movzbl %al, %eax
17 subl $2, %eax
18 .L1:
19 addq $8, %rsp
20 ret
21 .size __thrd_sleep, .-__thrd_sleep
22 .weak thrd_sleep
23 .set thrd_sleep,__thrd_sleep
24 .hidden __clock_nanosleep