12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #include <machine/asm.h>
- __FBSDID("$FreeBSD: src/lib/msun/amd64/s_remquol.S,v 1.2 2011/01/07 16:13:12 kib Exp $");
-
- ENTRY(remquol)
- fldt 24(%rsp)
- fldt 8(%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 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
- movl %eax,(%rdi)
- ret
- .section .note.GNU-stack,"",%progbits
|