Author: bde
Date: Sun Sep  4 15:08:14 2016
New Revision: 305385
URL: https://svnweb.freebsd.org/changeset/base/305385

Log:
  Oops, the previous i386 version of e_fmodf.S and e_fmodl.S was
  actually the amd64 version.

Modified:
  head/lib/msun/i387/e_fmodf.S
  head/lib/msun/i387/e_fmodl.S

Modified: head/lib/msun/i387/e_fmodf.S
==============================================================================
--- head/lib/msun/i387/e_fmodf.S        Sun Sep  4 14:12:19 2016        
(r305384)
+++ head/lib/msun/i387/e_fmodf.S        Sun Sep  4 15:08:14 2016        
(r305385)
@@ -1,5 +1,5 @@
 /*
- * Based on the i387 version written by J.T. Conklin <j...@netbsd.org>.
+ * Written by J.T. Conklin <j...@netbsd.org>.
  * Public domain.
  */
 
@@ -7,17 +7,13 @@
 __FBSDID("$FreeBSD$")
 
 ENTRY(fmodf)
-       movss   %xmm0,-4(%rsp)
-       movss   %xmm1,-8(%rsp)
-       flds    -8(%rsp)
-       flds    -4(%rsp)
+       flds    8(%esp)
+       flds    4(%esp)
 1:     fprem
        fstsw   %ax
-       testw   $0x400,%ax
-       jne     1b
-       fstps   -4(%rsp)
-       movss   -4(%rsp),%xmm0
-       fstp    %st
+       sahf
+       jp      1b
+       fstp    %st(1)
        ret
 END(fmodf)
 

Modified: head/lib/msun/i387/e_fmodl.S
==============================================================================
--- head/lib/msun/i387/e_fmodl.S        Sun Sep  4 14:12:19 2016        
(r305384)
+++ head/lib/msun/i387/e_fmodl.S        Sun Sep  4 15:08:14 2016        
(r305385)
@@ -29,7 +29,7 @@
  */
 
 /*
- * Based on the i387 version written by:
+ * Written by:
  *     J.T. Conklin (j...@wimsey.com), Winning Strategies, Inc.
  */
 
@@ -37,12 +37,12 @@
 __FBSDID("$FreeBSD$")
 
 ENTRY(fmodl)
-       fldt    24(%rsp)
-       fldt    8(%rsp)
+       fldt    16(%esp)
+       fldt    4(%esp)
 1:     fprem
        fstsw   %ax
-       testw   $0x400,%ax
-       jne     1b
+       sahf
+       jp      1b
        fstp    %st(1)
        ret
 END(fmodl)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to