Oops, the previous i386 version of e_fmodf.S and e_fmodl.S was

actually the amd64 version.
This commit is contained in:
Bruce Evans 2016-09-04 15:08:14 +00:00
parent 5432c3bec3
commit f776d19f07
2 changed files with 11 additions and 15 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Based on the i387 version written by J.T. Conklin <jtc@netbsd.org>. * Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain. * Public domain.
*/ */
@ -7,17 +7,13 @@
__FBSDID("$FreeBSD$") __FBSDID("$FreeBSD$")
ENTRY(fmodf) ENTRY(fmodf)
movss %xmm0,-4(%rsp) flds 8(%esp)
movss %xmm1,-8(%rsp) flds 4(%esp)
flds -8(%rsp)
flds -4(%rsp)
1: fprem 1: fprem
fstsw %ax fstsw %ax
testw $0x400,%ax sahf
jne 1b jp 1b
fstps -4(%rsp) fstp %st(1)
movss -4(%rsp),%xmm0
fstp %st
ret ret
END(fmodf) END(fmodf)

View File

@ -29,7 +29,7 @@
*/ */
/* /*
* Based on the i387 version written by: * Written by:
* J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.
*/ */
@ -37,12 +37,12 @@
__FBSDID("$FreeBSD$") __FBSDID("$FreeBSD$")
ENTRY(fmodl) ENTRY(fmodl)
fldt 24(%rsp) fldt 16(%esp)
fldt 8(%rsp) fldt 4(%esp)
1: fprem 1: fprem
fstsw %ax fstsw %ax
testw $0x400,%ax sahf
jne 1b jp 1b
fstp %st(1) fstp %st(1)
ret ret
END(fmodl) END(fmodl)