clarify the purpose of this project
[nyanglibc.git] / libio / __fbufsize.shared.s
blob3b0925c24c4cdcac3f1f28d60e08b3cb57928856
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 __fbufsize
9 .type __fbufsize, @function
10 __fbufsize:
11 movl 192(%rdi), %eax
12 testl %eax, %eax
13 jle .L2
14 movq 160(%rdi), %rdx
15 movq 56(%rdx), %rax
16 subq 48(%rdx), %rax
17 sarq $2, %rax
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L2:
22 movq 64(%rdi), %rax
23 subq 56(%rdi), %rax
24 ret
25 .size __fbufsize, .-__fbufsize