clarify the purpose of this project
[nyanglibc.git] / rt / timer_settime.s
blobe91bbd600c980db5ab0ab34decd7305fffc44f61
1 .text
2 .p2align 4,,15
3 .globl __timer_settime_new
4 .type __timer_settime_new, @function
5 __timer_settime_new:
6 testq %rdi, %rdi
7 movq %rdi, %rax
8 movq %rcx, %r10
9 jns .L3
10 addq %rax, %rax
11 movl (%rax), %edi
12 .L3:
13 movl $223, %eax
14 #APP
15 # 30 "../sysdeps/unix/sysv/linux/x86_64/timer_settime.c" 1
16 syscall
18 # 0 "" 2
19 #NO_APP
20 cmpq $-4096, %rax
21 ja .L7
22 rep ret
23 .p2align 4,,10
24 .p2align 3
25 .L7:
26 movq errno@gottpoff(%rip), %rdx
27 negl %eax
28 movl %eax, %fs:(%rdx)
29 movl $-1, %eax
30 ret
31 .size __timer_settime_new, .-__timer_settime_new
32 .weak timer_settime
33 .set timer_settime,__timer_settime_new