From f776d19f0712612609a35439b13e75df0ca0c0f2 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 4 Sep 2016 15:08:14 +0000 Subject: [PATCH] Oops, the previous i386 version of e_fmodf.S and e_fmodl.S was actually the amd64 version. --- lib/msun/i387/e_fmodf.S | 16 ++++++---------- lib/msun/i387/e_fmodl.S | 10 +++++----- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/lib/msun/i387/e_fmodf.S b/lib/msun/i387/e_fmodf.S index 4b52040cab95..e269447226e9 100644 --- a/lib/msun/i387/e_fmodf.S +++ b/lib/msun/i387/e_fmodf.S @@ -1,5 +1,5 @@ /* - * Based on the i387 version written by J.T. Conklin . + * Written by J.T. Conklin . * 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) diff --git a/lib/msun/i387/e_fmodl.S b/lib/msun/i387/e_fmodl.S index 8f7a3b544fac..57e986c3d9f4 100644 --- a/lib/msun/i387/e_fmodl.S +++ b/lib/msun/i387/e_fmodl.S @@ -29,7 +29,7 @@ */ /* - * Based on the i387 version written by: + * Written by: * J.T. Conklin (jtc@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)