clarify the purpose of this project
[nyanglibc.git] / time / timespec_get.s
blobbf698c105ccd11b9904abd7d6ac0a607488879f4
1 .text
2 .p2align 4,,15
3 .globl __timespec_get
4 .type __timespec_get, @function
5 __timespec_get:
6 cmpl $1, %esi
7 je .L10
8 xorl %eax, %eax
9 ret
10 .p2align 4,,10
11 .p2align 3
12 .L10:
13 subq $8, %rsp
14 movq %rdi, %rsi
15 xorl %edi, %edi
16 call __clock_gettime
17 movl $1, %eax
18 addq $8, %rsp
19 ret
20 .size __timespec_get, .-__timespec_get
21 .globl timespec_get
22 .set timespec_get,__timespec_get
23 .hidden __clock_gettime