clarify the purpose of this project
[nyanglibc.git] / time / clock_getcpuclockid.s
blob3daa56fb25831b255eba7c9f5edce8266b17a242
1 .text
2 .p2align 4,,15
3 .globl __clock_getcpuclockid
4 .type __clock_getcpuclockid, @function
5 __clock_getcpuclockid:
6 notl %edi
7 movl $229, %ecx
8 movq %rsi, %r8
9 leal 2(,%rdi,8), %edx
10 xorl %esi, %esi
11 movl %ecx, %eax
12 movl %edx, %edi
13 #APP
14 # 37 "../sysdeps/unix/sysv/linux/clock_getcpuclockid.c" 1
15 syscall
17 # 0 "" 2
18 #NO_APP
19 testl %eax, %eax
20 movq %rax, %rsi
21 je .L6
22 negl %eax
23 movl $3, %edx
24 cmpl $-22, %esi
25 cmove %edx, %eax
26 ret
27 .p2align 4,,10
28 .p2align 3
29 .L6:
30 movl %edx, (%r8)
31 ret
32 .size __clock_getcpuclockid, .-__clock_getcpuclockid
33 .weak clock_getcpuclockid
34 .set clock_getcpuclockid,__clock_getcpuclockid