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 'register'.



details:   https://anonhg.NetBSD.org/src/rev/0c53ae647e80
branches:  trunk
changeset: 785547:0c53ae647e80
user:      isaki <isaki%NetBSD.org@localhost>
date:      Tue Mar 19 09:17:17 2013 +0000

description:
Remove 'register'.

diffstat:

 sys/arch/m68k/fpe/fpu_add.c     |  12 ++++++------
 sys/arch/m68k/fpe/fpu_arith.h   |   4 ++--
 sys/arch/m68k/fpe/fpu_div.c     |  12 ++++++------
 sys/arch/m68k/fpe/fpu_emulate.h |   8 ++++----
 sys/arch/m68k/fpe/fpu_explode.c |  30 ++++++++++++++----------------
 sys/arch/m68k/fpe/fpu_implode.c |  37 ++++++++++++++++++-------------------
 sys/arch/m68k/fpe/fpu_int.c     |  12 ++++++------
 sys/arch/m68k/fpe/fpu_mul.c     |  14 ++++++--------
 sys/arch/m68k/fpe/fpu_sqrt.c    |  16 ++++++++--------
 sys/arch/m68k/fpe/fpu_subr.c    |  20 ++++++++++----------
 10 files changed, 80 insertions(+), 85 deletions(-)

diffs (truncated from 481 to 300 lines):

diff -r db0200cef5aa -r 0c53ae647e80 sys/arch/m68k/fpe/fpu_add.c
--- a/sys/arch/m68k/fpe/fpu_add.c       Tue Mar 19 06:34:28 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_add.c       Tue Mar 19 09:17:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_add.c,v 1.7 2009/03/14 15:36:09 dsl Exp $ */
+/*     $NetBSD: fpu_add.c,v 1.8 2013/03/19 09:17:17 isaki Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_add.c,v 1.7 2009/03/14 15:36:09 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_add.c,v 1.8 2013/03/19 09:17:17 isaki Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -58,11 +58,11 @@
 #include "fpu_emulate.h"
 
 struct fpn *
-fpu_add(register struct fpemu *fe)
+fpu_add(struct fpemu *fe)
 {
-       register struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2, *r;
-       register u_int r0, r1, r2;
-       register int rd;
+       struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2, *r;
+       u_int r0, r1, r2;
+       int rd;
 
        /*
         * Put the `heavier' operand on the right (see fpu_emu.h).
diff -r db0200cef5aa -r 0c53ae647e80 sys/arch/m68k/fpe/fpu_arith.h
--- a/sys/arch/m68k/fpe/fpu_arith.h     Tue Mar 19 06:34:28 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_arith.h     Tue Mar 19 09:17:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_arith.h,v 1.5 2005/12/24 22:45:35 perry Exp $ */
+/*     $NetBSD: fpu_arith.h,v 1.6 2013/03/19 09:17:17 isaki Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -110,7 +110,7 @@
 #else
 
 /* set up for extended-precision arithemtic */
-#define        FPU_DECL_CARRY register int fpu_tmp;
+#define        FPU_DECL_CARRY int fpu_tmp;
 
 /*
  * We have three kinds of add:
diff -r db0200cef5aa -r 0c53ae647e80 sys/arch/m68k/fpe/fpu_div.c
--- a/sys/arch/m68k/fpe/fpu_div.c       Tue Mar 19 06:34:28 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_div.c       Tue Mar 19 09:17:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_div.c,v 1.6 2009/03/14 15:36:09 dsl Exp $ */
+/*     $NetBSD: fpu_div.c,v 1.7 2013/03/19 09:17:17 isaki Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_div.c,v 1.6 2009/03/14 15:36:09 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_div.c,v 1.7 2013/03/19 09:17:17 isaki Exp $");
 
 #include <sys/types.h>
 
@@ -150,11 +150,11 @@
  */
 
 struct fpn *
-fpu_div(register struct fpemu *fe)
+fpu_div(struct fpemu *fe)
 {
-       register struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2;
-       register u_int q, bit;
-       register u_int r0, r1, r2, d0, d1, d2, y0, y1, y2;
+       struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2;
+       u_int q, bit;
+       u_int r0, r1, r2, d0, d1, d2, y0, y1, y2;
        FPU_DECL_CARRY
 
        fe->fe_fpsr &= ~FPSR_EXCP; /* clear all exceptions */
diff -r db0200cef5aa -r 0c53ae647e80 sys/arch/m68k/fpe/fpu_emulate.h
--- a/sys/arch/m68k/fpe/fpu_emulate.h   Tue Mar 19 06:34:28 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_emulate.h   Tue Mar 19 09:17:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emulate.h,v 1.19 2011/10/15 15:34:06 tsutsui Exp $ */
+/*     $NetBSD: fpu_emulate.h,v 1.20 2013/03/19 09:17:17 isaki Exp $   */
 
 /*
  * Copyright (c) 1995 Gordon Ross
@@ -136,7 +136,7 @@
                SWAP(x, y); \
 }
 #define        SWAP(x, y) {                            \
-       register struct fpn *swap;              \
+       struct fpn *swap;                       \
        swap = (x), (x) = (y), (y) = swap;      \
 }
 
@@ -224,7 +224,7 @@
 /*
  * Round a number according to the round mode in FPCR
  */
-int    fpu_round(register struct fpemu *, register struct fpn *);
+int    fpu_round(struct fpemu *, struct fpn *);
 
 /* type conversion */
 void   fpu_explode(struct fpemu *, struct fpn *, int t, u_int *);
@@ -266,7 +266,7 @@
                  struct insn_ea *, char *);
 
 /* fpu_subr.c */
-void fpu_norm(register struct fpn *);
+void fpu_norm(struct fpn *);
 
 #if !defined(FPE_DEBUG)
 #  define FPE_DEBUG 0
diff -r db0200cef5aa -r 0c53ae647e80 sys/arch/m68k/fpe/fpu_explode.c
--- a/sys/arch/m68k/fpe/fpu_explode.c   Tue Mar 19 06:34:28 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_explode.c   Tue Mar 19 09:17:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_explode.c,v 1.11 2011/07/18 07:44:30 isaki Exp $ */
+/*     $NetBSD: fpu_explode.c,v 1.12 2013/03/19 09:17:17 isaki Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.11 2011/07/18 07:44:30 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.12 2013/03/19 09:17:17 isaki Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -87,7 +87,7 @@
  * int -> fpn.
  */
 static int
-fpu_itof(register struct fpn *fp, register u_int i)
+fpu_itof(struct fpn *fp, u_int i)
 {
 
        if (i == 0)
@@ -143,10 +143,10 @@
  * format: i.e., needs at most fp_mant[0] and fp_mant[1].
  */
 static int
-fpu_stof(register struct fpn *fp, register u_int i)
+fpu_stof(struct fpn *fp, u_int i)
 {
-       register int exp;
-       register u_int frac, f0, f1;
+       int exp;
+       u_int frac, f0, f1;
 #define SNG_SHIFT (SNG_FRACBITS - FP_LG)
 
        exp = (i >> (32 - 1 - SNG_EXPBITS)) & mask(SNG_EXPBITS);
@@ -161,10 +161,10 @@
  * We assume this uses at most (96-FP_LG) bits.
  */
 static int
-fpu_dtof(register struct fpn *fp, register u_int i, register u_int j)
+fpu_dtof(struct fpn *fp, u_int i, u_int j)
 {
-       register int exp;
-       register u_int frac, f0, f1, f2;
+       int exp;
+       u_int frac, f0, f1, f2;
 #define DBL_SHIFT (DBL_FRACBITS - 32 - FP_LG)
 
        exp = (i >> (32 - 1 - DBL_EXPBITS)) & mask(DBL_EXPBITS);
@@ -180,11 +180,10 @@
  * 96-bit extended -> fpn.
  */
 static int
-fpu_xtof(register struct fpn *fp, register u_int i, register u_int j,
-       register u_int k)
+fpu_xtof(struct fpn *fp, u_int i, u_int j, u_int k)
 {
-       register int exp;
-       register u_int frac, f0, f1, f2;
+       int exp;
+       u_int frac, f0, f1, f2;
 #define EXT_SHIFT (EXT_FRACBITS - 1 - 32 - FP_LG)
 
        exp = (i >> (32 - 1 - EXT_EXPBITS)) & mask(EXT_EXPBITS);
@@ -223,10 +222,9 @@
  * Explode the contents of a memory operand.
  */
 void
-fpu_explode(register struct fpemu *fe, register struct fpn *fp, int type,
-       register u_int *space)
+fpu_explode(struct fpemu *fe, struct fpn *fp, int type, u_int *space)
 {
-       register u_int s;
+       u_int s;
 
        s = space[0];
        fp->fp_sign = s >> 31;
diff -r db0200cef5aa -r 0c53ae647e80 sys/arch/m68k/fpe/fpu_implode.c
--- a/sys/arch/m68k/fpe/fpu_implode.c   Tue Mar 19 06:34:28 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_implode.c   Tue Mar 19 09:17:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_implode.c,v 1.12 2011/07/18 07:44:30 isaki Exp $ */
+/*     $NetBSD: fpu_implode.c,v 1.13 2013/03/19 09:17:17 isaki Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.12 2011/07/18 07:44:30 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.13 2013/03/19 09:17:17 isaki Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -76,10 +76,10 @@
  * responsibility to fix this if necessary.
  */
 int
-fpu_round(register struct fpemu *fe, register struct fpn *fp)
+fpu_round(struct fpemu *fe, struct fpn *fp)
 {
-       register u_int m0, m1, m2;
-       register int gr, s;
+       u_int m0, m1, m2;
+       int gr, s;
 
        m0 = fp->fp_mant[0];
        m1 = fp->fp_mant[1];
@@ -187,10 +187,10 @@
  * of the SPARC instruction set).
  */
 static u_int
-fpu_ftoi(struct fpemu *fe, register struct fpn *fp)
+fpu_ftoi(struct fpemu *fe, struct fpn *fp)
 {
-       register u_int i;
-       register int sign, exp;
+       u_int i;
+       int sign, exp;
 
        sign = fp->fp_sign;
        switch (fp->fp_class) {
@@ -237,10 +237,10 @@
  * We assume <= 29 bits in a single-precision fraction (1.f part).
  */
 static u_int
-fpu_ftos(struct fpemu *fe, register struct fpn *fp)
+fpu_ftos(struct fpemu *fe, struct fpn *fp)
 {
-       register u_int sign = fp->fp_sign << 31;
-       register int exp;
+       u_int sign = fp->fp_sign << 31;
+       int exp;
 
 #define        SNG_EXP(e)      ((e) << SNG_FRACBITS)   /* makes e an exponent */
 #define        SNG_MASK        (SNG_EXP(1) - 1)        /* mask for fraction */
@@ -321,10 +321,10 @@
  * This code mimics fpu_ftos; see it for comments.
  */
 static u_int
-fpu_ftod(struct fpemu *fe, register struct fpn *fp, u_int *res)
+fpu_ftod(struct fpemu *fe, struct fpn *fp, u_int *res)
 {
-       register u_int sign = fp->fp_sign << 31;
-       register int exp;
+       u_int sign = fp->fp_sign << 31;
+       int exp;
 
 #define        DBL_EXP(e)      ((e) << (DBL_FRACBITS & 31))
 #define        DBL_MASK        (DBL_EXP(1) - 1)
@@ -383,10 +383,10 @@
  * This code mimics fpu_ftos; see it for comments.
  */
 static u_int
-fpu_ftox(struct fpemu *fe, register struct fpn *fp, u_int *res)
+fpu_ftox(struct fpemu *fe, struct fpn *fp, u_int *res)
 {
-       register u_int sign = fp->fp_sign << 31;
-       register int exp;
+       u_int sign = fp->fp_sign << 31;
+       int exp;
 
 #define        EXT_EXP(e)      ((e) << 16)
 /*
@@ -454,8 +454,7 @@
  * Implode an fpn, writing the result into the given space.
  */
 void
-fpu_implode(struct fpemu *fe, register struct fpn *fp, int type,
-       register u_int *space)
+fpu_implode(struct fpemu *fe, struct fpn *fp, int type, u_int *space)



Home | Main Index | Thread Index | Old Index