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 Clean up some useless codes.
details: https://anonhg.NetBSD.org/src/rev/8ff3602e59a6
branches: trunk
changeset: 786217:8ff3602e59a6
user: isaki <isaki%NetBSD.org@localhost>
date: Sat Apr 20 05:27:05 2013 +0000
description:
Clean up some useless codes.
diffstat:
sys/arch/m68k/fpe/fpu_hyperb.c | 14 +++++---------
sys/arch/m68k/fpe/fpu_log.c | 7 +++----
sys/arch/m68k/fpe/fpu_trig.c | 9 +++------
3 files changed, 11 insertions(+), 19 deletions(-)
diffs (107 lines):
diff -r 0a698a90e732 -r 8ff3602e59a6 sys/arch/m68k/fpe/fpu_hyperb.c
--- a/sys/arch/m68k/fpe/fpu_hyperb.c Sat Apr 20 05:09:41 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_hyperb.c Sat Apr 20 05:27:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_hyperb.c,v 1.13 2013/04/20 04:55:44 isaki Exp $ */
+/* $NetBSD: fpu_hyperb.c,v 1.14 2013/04/20 05:27:05 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_hyperb.c,v 1.13 2013/04/20 04:55:44 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_hyperb.c,v 1.14 2013/04/20 05:27:05 isaki Exp $");
#include <machine/ieee.h>
@@ -218,9 +218,8 @@
fpu_const(&s0, FPU_CONST_1);
r = __fpu_sinhcosh_taylor(fe, &s0, 1);
- CPYFPN(&fe->fe_f2, r);
- return &fe->fe_f2;
+ return r;
}
struct fpn *
@@ -236,9 +235,8 @@
CPYFPN(&s0, &fe->fe_f2);
r = __fpu_sinhcosh_taylor(fe, &s0, 2);
- CPYFPN(&fe->fe_f2, r);
- return &fe->fe_f2;
+ return r;
}
struct fpn *
@@ -274,7 +272,5 @@
CPYFPN(&fe->fe_f1, &s);
r = fpu_div(fe);
- CPYFPN(&fe->fe_f2, r);
-
- return &fe->fe_f2;
+ return r;
}
diff -r 0a698a90e732 -r 8ff3602e59a6 sys/arch/m68k/fpe/fpu_log.c
--- a/sys/arch/m68k/fpe/fpu_log.c Sat Apr 20 05:09:41 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_log.c Sat Apr 20 05:27:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_log.c,v 1.16 2013/04/11 13:27:11 isaki Exp $ */
+/* $NetBSD: fpu_log.c,v 1.17 2013/04/20 05:27:05 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_log.c,v 1.16 2013/04/11 13:27:11 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_log.c,v 1.17 2013/04/20 05:27:05 isaki Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -599,8 +599,7 @@
fp = fpu_add(fe);
/* copy the result to the src opr */
- if (&fe->fe_f2 != fp)
- CPYFPN(&fe->fe_f2, fp);
+ CPYFPN(&fe->fe_f2, fp);
return fpu_logn(fe);
}
diff -r 0a698a90e732 -r 8ff3602e59a6 sys/arch/m68k/fpe/fpu_trig.c
--- a/sys/arch/m68k/fpe/fpu_trig.c Sat Apr 20 05:09:41 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_trig.c Sat Apr 20 05:27:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_trig.c,v 1.13 2013/04/20 05:09:41 isaki Exp $ */
+/* $NetBSD: fpu_trig.c,v 1.14 2013/04/20 05:27:05 isaki Exp $ */
/*
* Copyright (c) 1995 Ken Nakata
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.13 2013/04/20 05:09:41 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_trig.c,v 1.14 2013/04/20 05:27:05 isaki Exp $");
#include "fpu_emulate.h"
@@ -427,10 +427,7 @@
CPYFPN(&fe->fe_f1, &s);
r = fpu_div(fe);
-
- CPYFPN(&fe->fe_f2, r);
-
- return &fe->fe_f2;
+ return r;
}
struct fpn *
Home |
Main Index |
Thread Index |
Old Index