clarify the purpose of this project
[nyanglibc.git] / stdlib / mpn2ldbl.s
blob33e4cca02a4c0ae3b5c268ee764e5b0356063979
1 .text
2 .p2align 4,,15
3 .globl __mpn_construct_long_double
4 .hidden __mpn_construct_long_double
5 .type __mpn_construct_long_double, @function
6 __mpn_construct_long_double:
7 movl %edx, %eax
8 movzbl -15(%rsp), %edx
9 addw $16383, %si
10 sall $7, %eax
11 andl $127, %edx
12 orl %eax, %edx
13 movl %esi, %eax
14 movb %dl, -15(%rsp)
15 movzwl -16(%rsp), %esi
16 andw $32767, %ax
17 andw $-32768, %si
18 orl %eax, %esi
19 movq (%rdi), %rax
20 movw %si, -16(%rsp)
21 movl %eax, -24(%rsp)
22 shrq $32, %rax
23 movl %eax, -20(%rsp)
24 fldt -24(%rsp)
25 ret
26 .size __mpn_construct_long_double, .-__mpn_construct_long_double