12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #include <amd64/bsd_asm.h>
- //__FBSDID("$FreeBSD: src/lib/msun/amd64/s_remquof.S,v 1.3 2011/01/07 16:13:12 kib Exp $");
-
- ENTRY(remquof)
- movss %xmm0,-4(%rsp)
- movss %xmm1,-8(%rsp)
- flds -8(%rsp)
- flds -4(%rsp)
- 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 -8(%rsp),%ecx
- xorl -4(%rsp),%ecx
- sarl $16,%ecx
- sarl $16,%ecx
- xorl %ecx,%eax
- andl $1,%ecx
- addl %ecx,%eax
- #ifndef _WIN64
- movl %eax,(%rdi)
- #else
- movl %eax,(%r8)
- #endif
- fstps -4(%rsp)
- movss -4(%rsp),%xmm0
- ret
- END(remquof)
-
- #if defined(__ELF__)
- .section .note.GNU-stack,"",%progbits
- #endif
|