Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/fpu static-fy fpu_[ixsd]tof(). NFC.



details:   https://anonhg.NetBSD.org/src/rev/ecf3b630ac44
branches:  trunk
changeset: 369870:ecf3b630ac44
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Sep 05 00:24:24 2022 +0000

description:
static-fy fpu_[ixsd]tof(). NFC.

diffstat:

 sys/arch/powerpc/fpu/fpu_explode.c |  17 +++++++++++------
 sys/arch/powerpc/fpu/fpu_extern.h  |   6 +-----
 2 files changed, 12 insertions(+), 11 deletions(-)

diffs (86 lines):

diff -r da74b910fac2 -r ecf3b630ac44 sys/arch/powerpc/fpu/fpu_explode.c
--- a/sys/arch/powerpc/fpu/fpu_explode.c        Mon Sep 05 00:18:25 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_explode.c        Mon Sep 05 00:24:24 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_explode.c,v 1.12 2022/09/02 12:40:49 rin Exp $ */
+/*     $NetBSD: fpu_explode.c,v 1.13 2022/09/05 00:24:24 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.12 2022/09/02 12:40:49 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_explode.c,v 1.13 2022/09/05 00:24:24 rin Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -60,6 +60,11 @@
 #include <powerpc/fpu/fpu_emu.h>
 #include <powerpc/fpu/fpu_extern.h>
 
+static int fpu_itof(struct fpn *, u_int);
+static int fpu_xtof(struct fpn *, uint64_t);
+static int fpu_stof(struct fpn *, u_int);
+static int fpu_dtof(struct fpn *, u_int, u_int);
+
 /*
  * N.B.: in all of the following, we assume the FP format is
  *
@@ -82,7 +87,7 @@
 /*
  * int -> fpn.
  */
-int
+static int
 fpu_itof(struct fpn *fp, u_int lo)
 {
 
@@ -106,7 +111,7 @@
 /*
  * 64-bit int -> fpn.
  */
-int
+static int
 fpu_xtof(struct fpn *fp, uint64_t i)
 {
 
@@ -165,7 +170,7 @@
  * We assume a single occupies at most (64-FP_LG) bits in the internal
  * format: i.e., needs at most fp_mant[0] and fp_mant[1].
  */
-int
+static int
 fpu_stof(struct fpn *fp, u_int hi)
 {
        int exp;
@@ -183,7 +188,7 @@
  * 64-bit double -> fpn.
  * We assume this uses at most (96-FP_LG) bits.
  */
-int
+static int
 fpu_dtof(struct fpn *fp, u_int hi, u_int lo)
 {
        int exp;
diff -r da74b910fac2 -r ecf3b630ac44 sys/arch/powerpc/fpu/fpu_extern.h
--- a/sys/arch/powerpc/fpu/fpu_extern.h Mon Sep 05 00:18:25 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_extern.h Mon Sep 05 00:24:24 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_extern.h,v 1.9 2022/09/02 12:40:49 rin Exp $       */
+/*     $NetBSD: fpu_extern.h,v 1.10 2022/09/05 00:24:24 rin Exp $      */
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -56,10 +56,6 @@
 struct fpn *fpu_div(struct fpemu *);
 
 /* fpu_explode.c */
-int fpu_itof(struct fpn *, u_int);
-int fpu_xtof(struct fpn *, uint64_t);
-int fpu_stof(struct fpn *, u_int);
-int fpu_dtof(struct fpn *, u_int, u_int);
 void fpu_explode(struct fpemu *, struct fpn *, int, uint64_t);
 
 /* fpu_implode.c */



Home | Main Index | Thread Index | Old Index