clarify the purpose of this project
[nyanglibc.git] / libio / __fbufsize.s
blob9c840b962d19cb2e082fdeb6386f6bc1bff49f51
1 .text
2 .p2align 4,,15
3 .globl __fbufsize
4 .type __fbufsize, @function
5 __fbufsize:
6 movl 192(%rdi), %eax
7 testl %eax, %eax
8 jle .L2
9 movq 160(%rdi), %rdx
10 movq 56(%rdx), %rax
11 subq 48(%rdx), %rax
12 sarq $2, %rax
13 ret
14 .p2align 4,,10
15 .p2align 3
16 .L2:
17 movq 64(%rdi), %rax
18 subq 56(%rdi), %rax
19 ret
20 .size __fbufsize, .-__fbufsize