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 Remove about updating fpsr. It was introdu...
details: https://anonhg.NetBSD.org/src/rev/29b6ee74a780
branches: trunk
changeset: 785607:29b6ee74a780
user: isaki <isaki%NetBSD.org@localhost>
date: Sat Mar 23 12:06:24 2013 +0000
description:
Remove about updating fpsr. It was introduced by me but obviously
duplicated with fpu_emul_arith().
diffstat:
sys/arch/m68k/fpe/fpu_hyperb.c | 13 ++-----------
sys/arch/m68k/fpe/fpu_trig.c | 14 ++------------
2 files changed, 4 insertions(+), 23 deletions(-)
diffs (144 lines):
diff -r 18709a44165b -r 29b6ee74a780 sys/arch/m68k/fpe/fpu_hyperb.c
--- a/sys/arch/m68k/fpe/fpu_hyperb.c Sat Mar 23 11:51:47 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_hyperb.c Sat Mar 23 12:06:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_hyperb.c,v 1.6 2011/10/15 15:14:30 tsutsui Exp $ */
+/* $NetBSD: fpu_hyperb.c,v 1.7 2013/03/23 12:06:24 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_hyperb.c,v 1.6 2011/10/15 15:14:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_hyperb.c,v 1.7 2013/03/23 12:06:24 isaki Exp $");
#include "fpu_emulate.h"
@@ -81,8 +81,6 @@
struct fpn *r;
int hyperb = 1;
- fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
-
if (ISNAN(&fe->fe_f2))
return &fe->fe_f2;
@@ -95,7 +93,6 @@
r = fpu_sincos_taylor(fe, &s0, 1, hyperb);
CPYFPN(&fe->fe_f2, r);
- fpu_upd_fpsr(fe, &fe->fe_f2);
return &fe->fe_f2;
}
@@ -106,8 +103,6 @@
struct fpn *r;
int hyperb = 1;
- fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
-
if (ISNAN(&fe->fe_f2))
return &fe->fe_f2;
if (ISINF(&fe->fe_f2))
@@ -117,7 +112,6 @@
r = fpu_sincos_taylor(fe, &s0, 2, hyperb);
CPYFPN(&fe->fe_f2, r);
- fpu_upd_fpsr(fe, &fe->fe_f2);
return &fe->fe_f2;
}
@@ -129,8 +123,6 @@
struct fpn *r;
int sign;
- fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
-
if (ISNAN(&fe->fe_f2))
return &fe->fe_f2;
@@ -158,6 +150,5 @@
CPYFPN(&fe->fe_f2, r);
- fpu_upd_fpsr(fe, &fe->fe_f2);
return &fe->fe_f2;
}
diff -r 18709a44165b -r 29b6ee74a780 sys/arch/m68k/fpe/fpu_trig.c
--- a/sys/arch/m68k/fpe/fpu_trig.c Sat Mar 23 11:51:47 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_trig.c Sat Mar 23 12:06:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_trig.c,v 1.6 2011/10/15 15:14:30 tsutsui Exp $ */
+/* $NetBSD: fpu_trig.c,v 1.7 2013/03/23 12:06:24 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.6 2011/10/15 15:14:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.7 2013/03/23 12:06:24 isaki Exp $");
#include "fpu_emulate.h"
@@ -239,8 +239,6 @@
struct fpn *r;
int sign;
- fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
-
if (ISNAN(&fe->fe_f2))
return &fe->fe_f2;
if (ISINF(&fe->fe_f2))
@@ -319,7 +317,6 @@
CPYFPN(&fe->fe_f2, r);
fe->fe_f2.fp_sign = sign;
- fpu_upd_fpsr(fe, &fe->fe_f2);
return &fe->fe_f2;
}
@@ -354,8 +351,6 @@
struct fpn *r;
int sign;
- fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
-
if (ISNAN(&fe->fe_f2))
return &fe->fe_f2;
if (ISINF(&fe->fe_f2))
@@ -433,7 +428,6 @@
CPYFPN(&fe->fe_f2, r);
fe->fe_f2.fp_sign = sign;
- fpu_upd_fpsr(fe, &fe->fe_f2);
return &fe->fe_f2;
}
@@ -447,8 +441,6 @@
struct fpn s;
struct fpn *r;
- fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
-
if (ISNAN(&fe->fe_f2))
return &fe->fe_f2;
if (ISINF(&fe->fe_f2))
@@ -471,7 +463,6 @@
CPYFPN(&fe->fe_f2, r);
- fpu_upd_fpsr(fe, &fe->fe_f2);
return &fe->fe_f2;
}
@@ -490,6 +481,5 @@
/* sin(x) */
CPYFPN(&fe->fe_f2, &x);
r = fpu_sin(fe);
- fpu_upd_fpsr(fe, r);
return r;
}
Home |
Main Index |
Thread Index |
Old Index