clarify the purpose of this project
[nyanglibc.git] / rt / timer_getoverr.shared.s
blob426006fc7c6208f0324c5e64acf72584aa5f7899
1 .text
2 #APP
3 .symver __timer_getoverrun_new,timer_getoverrun@@GLIBC_2.3.3
4 .symver __timer_getoverrun_old,timer_getoverrun@GLIBC_2.2.5
5 #NO_APP
6 .p2align 4,,15
7 .globl __timer_getoverrun_new
8 .type __timer_getoverrun_new, @function
9 __timer_getoverrun_new:
10 testq %rdi, %rdi
11 movq %rdi, %rax
12 jns .L3
13 addq %rax, %rax
14 movl (%rax), %edi
15 .L3:
16 movl $225, %eax
17 #APP
18 # 35 "../sysdeps/unix/sysv/linux/timer_getoverr.c" 1
19 syscall
21 # 0 "" 2
22 #NO_APP
23 cmpq $-4096, %rax
24 ja .L7
25 rep ret
26 .p2align 4,,10
27 .p2align 3
28 .L7:
29 movq errno@gottpoff(%rip), %rdx
30 negl %eax
31 movl %eax, %fs:(%rdx)
32 movl $-1, %eax
33 ret
34 .size __timer_getoverrun_new, .-__timer_getoverrun_new
35 .p2align 4,,15
36 .globl __timer_getoverrun_old
37 .type __timer_getoverrun_old, @function
38 __timer_getoverrun_old:
39 leaq __compat_timer_list(%rip), %rax
40 movslq %edi, %rdi
41 movq (%rax,%rdi,8), %rdi
42 jmp __timer_getoverrun_new@PLT
43 .size __timer_getoverrun_old, .-__timer_getoverrun_old
44 .hidden __compat_timer_list