clarify the purpose of this project
[nyanglibc.git] / time / clock_getres.shared.s
blob13a2531ed3e57876704837512132599c0869dfbf
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __clock_getres,clock_getres@@GLIBC_2.17
7 .symver __clock_getres_2,clock_getres@GLIBC_2.2.5
8 #NO_APP
9 .p2align 4,,15
10 .globl __clock_getres
11 .type __clock_getres, @function
12 __clock_getres:
13 pushq %rbp
14 pushq %rbx
15 movq %rsi, %rbp
16 movl %edi, %ebx
17 subq $8, %rsp
18 movq _rtld_global_ro@GOTPCREL(%rip), %rax
19 movq 720(%rax), %rax
20 testq %rax, %rax
21 je .L6
22 call *%rax
23 movslq %eax, %rdx
24 cmpq $-4096, %rdx
25 jbe .L1
26 cmpq $-38, %rdx
27 je .L6
28 .L3:
29 movq __libc_errno@gottpoff(%rip), %rax
30 negl %edx
31 movl %edx, %fs:(%rax)
32 movl $-1, %eax
33 .L5:
34 .L1:
35 addq $8, %rsp
36 popq %rbx
37 popq %rbp
38 ret
39 .p2align 4,,10
40 .p2align 3
41 .L6:
42 movq %rbp, %rsi
43 movl %ebx, %edi
44 movl $229, %eax
45 #APP
46 # 40 "../sysdeps/unix/sysv/linux/clock_getres.c" 1
47 syscall
49 # 0 "" 2
50 #NO_APP
51 cmpq $-4096, %rax
52 movq %rax, %rdx
53 ja .L3
54 jmp .L1
55 .size __clock_getres, .-__clock_getres
56 .globl __clock_getres_2
57 .set __clock_getres_2,__clock_getres