clarify the purpose of this project
[nyanglibc.git] / time / timespec_get.shared.s
blob8b307342a249d717fd23ba3fee3b62f580c80314
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __timespec_get
9 .type __timespec_get, @function
10 __timespec_get:
11 cmpl $1, %esi
12 je .L10
13 xorl %eax, %eax
14 ret
15 .p2align 4,,10
16 .p2align 3
17 .L10:
18 subq $8, %rsp
19 movq %rdi, %rsi
20 xorl %edi, %edi
21 call __GI___clock_gettime
22 movl $1, %eax
23 addq $8, %rsp
24 ret
25 .size __timespec_get, .-__timespec_get
26 .globl timespec_get
27 .set timespec_get,__timespec_get