Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hppa/spmath -Wold-style-definition



details:   https://anonhg.NetBSD.org/src/rev/1f25385cb8d3
branches:  trunk
changeset: 773509:1f25385cb8d3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Feb 04 17:03:08 2012 +0000

description:
-Wold-style-definition

Same code before and after.  OK riz@

diffstat:

 sys/arch/hppa/spmath/dfadd.c   |  11 +++++------
 sys/arch/hppa/spmath/dfcmp.c   |  12 +++++-------
 sys/arch/hppa/spmath/dfdiv.c   |  10 ++++------
 sys/arch/hppa/spmath/dfmpy.c   |  10 ++++------
 sys/arch/hppa/spmath/dfrem.c   |  10 ++++------
 sys/arch/hppa/spmath/dfsqrt.c  |  10 ++++------
 sys/arch/hppa/spmath/dfsub.c   |  11 +++++------
 sys/arch/hppa/spmath/divsfm.c  |   9 +++------
 sys/arch/hppa/spmath/divsfr.c  |   9 +++------
 sys/arch/hppa/spmath/divsim.c  |   9 +++------
 sys/arch/hppa/spmath/divsir.c  |   9 +++------
 sys/arch/hppa/spmath/divufr.c  |   9 +++------
 sys/arch/hppa/spmath/divuir.c  |   9 +++------
 sys/arch/hppa/spmath/fcnvff.c  |  18 ++++++------------
 sys/arch/hppa/spmath/fcnvfx.c  |  30 +++++++++---------------------
 sys/arch/hppa/spmath/fcnvfxt.c |  32 ++++++++++----------------------
 sys/arch/hppa/spmath/fcnvxf.c  |  32 ++++++++++----------------------
 sys/arch/hppa/spmath/frnd.c    |  22 ++++++++--------------
 sys/arch/hppa/spmath/mpyaccs.c |   9 +++------
 sys/arch/hppa/spmath/mpyaccu.c |  10 ++++------
 sys/arch/hppa/spmath/mpys.c    |   9 +++------
 sys/arch/hppa/spmath/mpyscv.c  |   9 +++------
 sys/arch/hppa/spmath/mpyu.c    |  10 ++++------
 sys/arch/hppa/spmath/mpyucv.c  |  10 ++++------
 sys/arch/hppa/spmath/setovfl.c |   8 +++-----
 sys/arch/hppa/spmath/sfadd.c   |  11 +++++------
 sys/arch/hppa/spmath/sfcmp.c   |  12 +++++-------
 sys/arch/hppa/spmath/sfdiv.c   |  10 ++++------
 sys/arch/hppa/spmath/sfmpy.c   |  10 ++++------
 sys/arch/hppa/spmath/sfrem.c   |  10 ++++------
 sys/arch/hppa/spmath/sfsqrt.c  |  10 ++++------
 sys/arch/hppa/spmath/sfsub.c   |  11 +++++------
 32 files changed, 147 insertions(+), 254 deletions(-)

diffs (truncated from 1117 to 300 lines):

diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/dfadd.c
--- a/sys/arch/hppa/spmath/dfadd.c      Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/dfadd.c      Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dfadd.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $        */
+/*     $NetBSD: dfadd.c,v 1.5 2012/02/04 17:03:08 skrll Exp $  */
 
 /*     $OpenBSD: dfadd.c,v 1.4 2001/03/29 03:58:17 mickey Exp $        */
 
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfadd.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfadd.c,v 1.5 2012/02/04 17:03:08 skrll Exp $");
 
 #include "../spmath/float.h"
 #include "../spmath/dbl_float.h"
@@ -50,10 +50,9 @@
  * Double_add: add two double precision values.
  */
 int
-dbl_fadd(leftptr, rightptr, dstptr, status)
-    dbl_floating_point *leftptr, *rightptr, *dstptr;
-    unsigned int *status;
-    {
+dbl_fadd(dbl_floating_point *leftptr, dbl_floating_point *rightptr,
+    dbl_floating_point *dstptr, unsigned int *status)
+{
     register unsigned int signless_upper_left, signless_upper_right, save;
     register unsigned int leftp1, leftp2, rightp1, rightp2, extent;
     register unsigned int resultp1 = 0, resultp2 = 0;
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/dfcmp.c
--- a/sys/arch/hppa/spmath/dfcmp.c      Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/dfcmp.c      Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dfcmp.c,v 1.3 2005/12/11 12:17:40 christos Exp $       */
+/*     $NetBSD: dfcmp.c,v 1.4 2012/02/04 17:03:09 skrll Exp $  */
 
 /*     $OpenBSD: dfcmp.c,v 1.4 2001/03/29 03:58:17 mickey Exp $        */
 
@@ -42,7 +42,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfcmp.c,v 1.3 2005/12/11 12:17:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfcmp.c,v 1.4 2012/02/04 17:03:09 skrll Exp $");
 
 #include "../spmath/float.h"
 #include "../spmath/dbl_float.h"
@@ -51,11 +51,9 @@
  * dbl_cmp: compare two values
  */
 int
-dbl_fcmp(leftptr, rightptr, cond, status)
-    dbl_floating_point *leftptr, *rightptr;
-    unsigned int cond; /* The predicate to be tested */
-    unsigned int *status;
-    {
+dbl_fcmp(dbl_floating_point *leftptr, dbl_floating_point *rightptr,
+    unsigned int cond, unsigned int *status)
+{
     register unsigned int leftp1, leftp2, rightp1, rightp2;
     register int xorresult;
 
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/dfdiv.c
--- a/sys/arch/hppa/spmath/dfdiv.c      Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/dfdiv.c      Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dfdiv.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $        */
+/*     $NetBSD: dfdiv.c,v 1.5 2012/02/04 17:03:09 skrll Exp $  */
 
 /*     $OpenBSD: dfdiv.c,v 1.4 2001/03/29 03:58:17 mickey Exp $        */
 
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfdiv.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfdiv.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "../spmath/float.h"
 #include "../spmath/dbl_float.h"
@@ -52,10 +52,8 @@
  */
 
 int
-dbl_fdiv(srcptr1,srcptr2,dstptr,status)
-
-dbl_floating_point *srcptr1, *srcptr2, *dstptr;
-unsigned int *status;
+dbl_fdiv(dbl_floating_point *srcptr1, dbl_floating_point *srcptr2,
+    dbl_floating_point *dstptr, unsigned int *status)
 {
        register unsigned int opnd1p1, opnd1p2, opnd2p1, opnd2p2;
        register unsigned int opnd3p1, opnd3p2, resultp1, resultp2;
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/dfmpy.c
--- a/sys/arch/hppa/spmath/dfmpy.c      Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/dfmpy.c      Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dfmpy.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $        */
+/*     $NetBSD: dfmpy.c,v 1.5 2012/02/04 17:03:09 skrll Exp $  */
 
 /*     $OpenBSD: dfmpy.c,v 1.4 2001/03/29 03:58:17 mickey Exp $        */
 
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfmpy.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfmpy.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "../spmath/float.h"
 #include "../spmath/dbl_float.h"
@@ -52,10 +52,8 @@
  */
 
 int
-dbl_fmpy(srcptr1,srcptr2,dstptr,status)
-
-dbl_floating_point *srcptr1, *srcptr2, *dstptr;
-unsigned int *status;
+dbl_fmpy(dbl_floating_point *srcptr1, dbl_floating_point *srcptr2,
+    dbl_floating_point *dstptr, unsigned int *status)
 {
        register unsigned int opnd1p1, opnd1p2, opnd2p1, opnd2p2;
        register unsigned int opnd3p1, opnd3p2, resultp1, resultp2;
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/dfrem.c
--- a/sys/arch/hppa/spmath/dfrem.c      Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/dfrem.c      Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dfrem.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $        */
+/*     $NetBSD: dfrem.c,v 1.5 2012/02/04 17:03:09 skrll Exp $  */
 
 /*     $OpenBSD: dfrem.c,v 1.4 2001/03/29 03:58:17 mickey Exp $        */
 
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfrem.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfrem.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "../spmath/float.h"
 #include "../spmath/dbl_float.h"
@@ -51,10 +51,8 @@
  *  Double Precision Floating-point Remainder
  */
 int
-dbl_frem(srcptr1,srcptr2,dstptr,status)
-
-dbl_floating_point *srcptr1, *srcptr2, *dstptr;
-unsigned int *status;
+dbl_frem(dbl_floating_point *srcptr1, dbl_floating_point *srcptr2,
+   dbl_floating_point *dstptr, unsigned int *status)
 {
        register unsigned int opnd1p1, opnd1p2, opnd2p1, opnd2p2;
        register unsigned int resultp1, resultp2;
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/dfsqrt.c
--- a/sys/arch/hppa/spmath/dfsqrt.c     Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/dfsqrt.c     Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dfsqrt.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $       */
+/*     $NetBSD: dfsqrt.c,v 1.5 2012/02/04 17:03:09 skrll Exp $ */
 
 /*     $OpenBSD: dfsqrt.c,v 1.5 2001/03/29 03:58:17 mickey Exp $       */
 
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfsqrt.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfsqrt.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "../spmath/float.h"
 #include "../spmath/dbl_float.h"
@@ -53,10 +53,8 @@
 
 /*ARGSUSED*/
 int
-dbl_fsqrt(srcptr,dstptr,status)
-
-dbl_floating_point *srcptr, *dstptr;
-unsigned int *status;
+dbl_fsqrt(dbl_floating_point *srcptr, dbl_floating_point *dstptr,
+    unsigned int *status)
 {
        register unsigned int srcp1, srcp2, resultp1, resultp2;
        register unsigned int newbitp1, newbitp2, sump1, sump2;
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/dfsub.c
--- a/sys/arch/hppa/spmath/dfsub.c      Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/dfsub.c      Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dfsub.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $        */
+/*     $NetBSD: dfsub.c,v 1.5 2012/02/04 17:03:09 skrll Exp $  */
 
 /*     $OpenBSD: dfsub.c,v 1.4 2001/03/29 03:58:17 mickey Exp $        */
 
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfsub.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfsub.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "../spmath/float.h"
 #include "../spmath/dbl_float.h"
@@ -51,10 +51,9 @@
  * Double_subtract: subtract two double precision values.
  */
 int
-dbl_fsub(leftptr, rightptr, dstptr, status)
-    dbl_floating_point *leftptr, *rightptr, *dstptr;
-    unsigned int *status;
-    {
+dbl_fsub(dbl_floating_point *leftptr, dbl_floating_point *rightptr,
+    dbl_floating_point *dstptr, unsigned int *status)
+{
     register unsigned int signless_upper_left, signless_upper_right, save;
     register unsigned int leftp1, leftp2, rightp1, rightp2, extent;
     register unsigned int resultp1 = 0, resultp2 = 0;
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/divsfm.c
--- a/sys/arch/hppa/spmath/divsfm.c     Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/divsfm.c     Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: divsfm.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $       */
+/*     $NetBSD: divsfm.c,v 1.5 2012/02/04 17:03:09 skrll Exp $ */
 
 /*     $OpenBSD: divsfm.c,v 1.4 2001/03/29 03:58:17 mickey Exp $       */
 
@@ -42,15 +42,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: divsfm.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: divsfm.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "md.h"
 
 void
-divsfm(opnd1,opnd2,result)
-
-int opnd1, opnd2;
-struct mdsfu_register *result;
+divsfm(int opnd1, int opnd2, struct mdsfu_register *result)
 {
        register int sign, op1_sign;
 
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/divsfr.c
--- a/sys/arch/hppa/spmath/divsfr.c     Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/divsfr.c     Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: divsfr.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $       */
+/*     $NetBSD: divsfr.c,v 1.5 2012/02/04 17:03:09 skrll Exp $ */
 
 /*     $OpenBSD: divsfr.c,v 1.4 2001/03/29 03:58:18 mickey Exp $       */
 
@@ -42,15 +42,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: divsfr.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: divsfr.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "md.h"
 
 void
-divsfr(opnd1,opnd2,result)
-
-int opnd1, opnd2;
-struct mdsfu_register *result;
+divsfr(int opnd1, int opnd2, struct mdsfu_register *result)
 {
        int sign, op1_sign;
 
diff -r dd6493c43afb -r 1f25385cb8d3 sys/arch/hppa/spmath/divsim.c
--- a/sys/arch/hppa/spmath/divsim.c     Sat Feb 04 16:33:27 2012 +0000
+++ b/sys/arch/hppa/spmath/divsim.c     Sat Feb 04 17:03:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: divsim.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $       */
+/*     $NetBSD: divsim.c,v 1.5 2012/02/04 17:03:09 skrll Exp $ */
 
 /*     $OpenBSD: divsim.c,v 1.4 2001/03/29 03:58:18 mickey Exp $       */
 
@@ -42,15 +42,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: divsim.c,v 1.4 2007/02/22 05:46:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: divsim.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
 
 #include "md.h"
 
 void
-divsim(opnd1,opnd2,result)
-
-int opnd1, opnd2;
-struct mdsfu_register *result;
+divsim(int opnd1, int opnd2, struct mdsfu_register *result)
 {



Home | Main Index | Thread Index | Old Index