Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/m68k/fpe R := X even if L < 0 in Step2, according t...
details: https://anonhg.NetBSD.org/src/rev/e20109197fc4
branches: trunk
changeset: 786650:e20109197fc4
user: isaki <isaki%NetBSD.org@localhost>
date: Sun May 05 13:25:20 2013 +0000
description:
R := X even if L < 0 in Step2, according to algorithm of the comment.
This solves many cases of |X| < |Y|.
diffstat:
sys/arch/m68k/fpe/fpu_rem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r d854ffcda888 -r e20109197fc4 sys/arch/m68k/fpe/fpu_rem.c
--- a/sys/arch/m68k/fpe/fpu_rem.c Sun May 05 13:17:15 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_rem.c Sun May 05 13:25:20 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_rem.c,v 1.14 2013/05/05 13:17:15 isaki Exp $ */
+/* $NetBSD: fpu_rem.c,v 1.15 2013/05/05 13:25:20 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_rem.c,v 1.14 2013/05/05 13:17:15 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_rem.c,v 1.15 2013/05/05 13:25:20 isaki Exp $");
#include <sys/types.h>
#include <sys/signal.h>
@@ -117,8 +117,8 @@
l = x->fp_exp - y->fp_exp;
k = 0;
q = 0;
+ CPYFPN(r, x);
if (l >= 0) {
- CPYFPN(r, x);
r->fp_exp -= l;
j = l;
Home |
Main Index |
Thread Index |
Old Index