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