Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/fpu Drop ``register'' qualifier.
details: https://anonhg.NetBSD.org/src/rev/f142e8485859
branches: trunk
changeset: 369717:f142e8485859
user: rin <rin%NetBSD.org@localhost>
date: Sun Aug 28 22:09:26 2022 +0000
description:
Drop ``register'' qualifier.
No binary changes for GENERIC compiled by GCC 10.4.
diffstat:
sys/arch/sparc/fpu/fpu_add.c | 10 +++++-----
sys/arch/sparc/fpu/fpu_compare.c | 8 ++++----
sys/arch/sparc/fpu/fpu_div.c | 10 +++++-----
sys/arch/sparc/fpu/fpu_emu.h | 4 ++--
sys/arch/sparc/fpu/fpu_explode.c | 20 ++++++++++----------
sys/arch/sparc/fpu/fpu_extern.h | 8 ++++----
sys/arch/sparc/fpu/fpu_implode.c | 28 ++++++++++++++--------------
sys/arch/sparc/fpu/fpu_mul.c | 14 +++++++-------
sys/arch/sparc/fpu/fpu_sqrt.c | 16 ++++++++--------
sys/arch/sparc/fpu/fpu_subr.c | 20 ++++++++++----------
10 files changed, 69 insertions(+), 69 deletions(-)
diffs (truncated from 412 to 300 lines):
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_add.c
--- a/sys/arch/sparc/fpu/fpu_add.c Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_add.c Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_add.c,v 1.6 2005/11/16 23:24:44 uwe Exp $ */
+/* $NetBSD: fpu_add.c,v 1.7 2022/08/28 22:09:26 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_add.c,v 1.6 2005/11/16 23:24:44 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_add.c,v 1.7 2022/08/28 22:09:26 rin Exp $");
#include <sys/types.h>
#ifdef DIAGNOSTIC
@@ -64,9 +64,9 @@
struct fpn *
fpu_add(struct fpemu *fe)
{
- register struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2, *r;
- register u_int r0, r1, r2, r3;
- register int rd;
+ struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2, *r;
+ u_int r0, r1, r2, r3;
+ int rd;
/*
* Put the `heavier' operand on the right (see fpu_emu.h).
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_compare.c
--- a/sys/arch/sparc/fpu/fpu_compare.c Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_compare.c Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_compare.c,v 1.6 2005/12/11 12:19:05 christos Exp $ */
+/* $NetBSD: fpu_compare.c,v 1.7 2022/08/28 22:09:26 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_compare.c,v 1.6 2005/12/11 12:19:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_compare.c,v 1.7 2022/08/28 22:09:26 rin Exp $");
#include <sys/types.h>
@@ -75,8 +75,8 @@
void
fpu_compare(struct fpemu *fe, int cmpe)
{
- register struct fpn *a, *b;
- register int cc;
+ struct fpn *a, *b;
+ int cc;
FPU_DECL_CARRY
a = &fe->fe_f1;
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_div.c
--- a/sys/arch/sparc/fpu/fpu_div.c Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_div.c Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_div.c,v 1.5 2005/11/16 23:24:44 uwe Exp $ */
+/* $NetBSD: fpu_div.c,v 1.6 2022/08/28 22:09:26 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_div.c,v 1.5 2005/11/16 23:24:44 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_div.c,v 1.6 2022/08/28 22:09:26 rin Exp $");
#include <sys/types.h>
@@ -152,9 +152,9 @@
struct fpn *
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, r3, d0, d1, d2, d3, y0, y1, y2, y3;
+ struct fpn *x = &fe->fe_f1, *y = &fe->fe_f2;
+ u_int q, bit;
+ u_int r0, r1, r2, r3, d0, d1, d2, d3, y0, y1, y2, y3;
FPU_DECL_CARRY
/*
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_emu.h
--- a/sys/arch/sparc/fpu/fpu_emu.h Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_emu.h Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_emu.h,v 1.7 2005/12/11 12:19:05 christos Exp $ */
+/* $NetBSD: fpu_emu.h,v 1.8 2022/08/28 22:09:26 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -131,7 +131,7 @@
SWAP(x, y); \
}
#define SWAP(x, y) { \
- register struct fpn *swap; \
+ struct fpn *swap; \
swap = (x), (x) = (y), (y) = swap; \
}
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_explode.c
--- a/sys/arch/sparc/fpu/fpu_explode.c Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_explode.c Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_explode.c,v 1.12 2005/11/16 23:24:44 uwe Exp $ */
+/* $NetBSD: fpu_explode.c,v 1.13 2022/08/28 22:09:26 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.12 2005/11/16 23:24:44 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.13 2022/08/28 22:09:26 rin Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
@@ -173,8 +173,8 @@
int
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);
@@ -191,8 +191,8 @@
int
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);
@@ -208,10 +208,10 @@
* 128-bit extended -> fpn.
*/
int
-fpu_qtof(register struct fpn *fp, u_int i, u_int j, u_int k, u_int l)
+fpu_qtof(struct fpn *fp, u_int i, u_int j, u_int k, u_int l)
{
- register int exp;
- register u_int frac, f0, f1, f2, f3;
+ int exp;
+ u_int frac, f0, f1, f2, f3;
#define EXT_SHIFT (-(EXT_FRACBITS - 3 * 32 - FP_LG)) /* left shift! */
/*
@@ -236,7 +236,7 @@
void
fpu_explode(struct fpemu *fe, struct fpn *fp, int type, int reg)
{
- register u_int s, *space;
+ u_int s, *space;
#ifdef SUN4U
uint64_t l, *xspace;
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_extern.h
--- a/sys/arch/sparc/fpu/fpu_extern.h Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_extern.h Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_extern.h,v 1.9 2008/04/28 20:23:36 martin Exp $ */
+/* $NetBSD: fpu_extern.h,v 1.10 2022/08/28 22:09:26 rin Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -91,6 +91,6 @@
struct fpn *fpu_sqrt(struct fpemu *);
/* fpu_subr.c */
-int fpu_shr(register struct fpn *, register int);
-void fpu_norm(register struct fpn *);
-struct fpn *fpu_newnan(register struct fpemu *);
+int fpu_shr(struct fpn *, register int);
+void fpu_norm(struct fpn *);
+struct fpn *fpu_newnan(struct fpemu *);
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_implode.c
--- a/sys/arch/sparc/fpu/fpu_implode.c Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_implode.c Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_implode.c,v 1.13 2005/11/16 23:24:44 uwe Exp $ */
+/* $NetBSD: fpu_implode.c,v 1.14 2022/08/28 22:09:26 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.13 2005/11/16 23:24:44 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.14 2022/08/28 22:09:26 rin Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
@@ -81,8 +81,8 @@
static int
round(struct fpemu *fe, struct fpn *fp)
{
- register u_int m0, m1, m2, m3;
- register int gr, s;
+ u_int m0, m1, m2, m3;
+ int gr, s;
m0 = fp->fp_mant[0];
m1 = fp->fp_mant[1];
@@ -196,8 +196,8 @@
u_int
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) {
@@ -244,8 +244,8 @@
u_int
fpu_ftox(struct fpemu *fe, struct fpn *fp, u_int *res)
{
- register uint64_t i;
- register int sign, exp;
+ uint64_t i;
+ int sign, exp;
sign = fp->fp_sign;
switch (fp->fp_class) {
@@ -293,8 +293,8 @@
u_int
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 */
@@ -375,8 +375,8 @@
u_int
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)
@@ -433,8 +433,8 @@
u_int
fpu_ftoq(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) << (EXT_FRACBITS & 31))
#define EXT_MASK (EXT_EXP(1) - 1)
diff -r a6d1a5eb661a -r f142e8485859 sys/arch/sparc/fpu/fpu_mul.c
--- a/sys/arch/sparc/fpu/fpu_mul.c Sun Aug 28 21:24:09 2022 +0000
+++ b/sys/arch/sparc/fpu/fpu_mul.c Sun Aug 28 22:09:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_mul.c,v 1.5 2005/11/16 23:24:44 uwe Exp $ */
+/* $NetBSD: fpu_mul.c,v 1.6 2022/08/28 22:09:26 rin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_mul.c,v 1.5 2005/11/16 23:24:44 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_mul.c,v 1.6 2022/08/28 22:09:26 rin Exp $");
#include <sys/types.h>
@@ -77,8 +77,8 @@
*
* Since we do not have efficient multiword arithmetic, we code the
* accumulator as four separate words, just like any other mantissa.
- * We use local `register' variables in the hope that this is faster
- * than memory. We keep x->fp_mant in locals for the same reason.
+ * We use local variables in the hope that this is faster than memory.
Home |
Main Index |
Thread Index |
Old Index