clarify the purpose of this project
[nyanglibc.git] / math / s_isinfl.s
blob249b34b5cf25d345d2c0f817733effd7a225b35c
1 .text
2 .p2align 4,,15
3 .globl __isinfl
4 .hidden __isinfl
5 .type __isinfl, @function
6 __isinfl:
7 movq 8(%rsp), %rdi
8 movq 16(%rsp), %rdx
9 movq %rdi, %rsi
10 movswl %dx, %edx
11 shrq $32, %rsi
12 movl %edx, %eax
13 sarl $14, %edx
14 leal -2147483648(%rsi), %ecx
15 notl %eax
16 andl $2, %edx
17 andl $32767, %eax
18 orl %edi, %ecx
19 orl %eax, %ecx
20 movl %ecx, %eax
21 negl %eax
22 orl %ecx, %eax
23 movl $1, %ecx
24 sarl $31, %eax
25 subl %edx, %ecx
26 notl %eax
27 andl %ecx, %eax
28 ret
29 .size __isinfl, .-__isinfl
30 .weak isinfl
31 .set isinfl,__isinfl