123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #include <amd64/bsd_asm.h>
-
- ENTRY(remquol)
- #ifndef _WIN64
- fldt 24(%rsp)
- fldt 8(%rsp)
- #else
- fldt (%r8)
- fldt (%rdx)
- mov %rcx,%r8
- #endif
- 1: fprem1
- fstsw %ax
- btw $10,%ax
- jc 1b
- fstp %st(1)
- shrl $6,%eax
- movl %eax,%ecx
- andl $0x108,%eax
- rorl $7,%eax
- orl %eax,%ecx
- roll $4,%eax
- orl %ecx,%eax
- andl $7,%eax
- movl 32(%rsp),%ecx
- xorl 16(%rsp),%ecx
- movsx %cx,%ecx
- sarl $16,%ecx
- sarl $16,%ecx
- xorl %ecx,%eax
- andl $1,%ecx
- addl %ecx,%eax
- #ifndef _WIN64
- movl %eax,(%rdi)
- #else
- movl %eax,(%r9)
- mov %r8,%rax
- movq $0x0,0x8(%r8)
- fstpt (%r8)
- #endif
- ret
-
- #if defined(__ELF__)
- .section .note.GNU-stack,"",%progbits
- #endif
|