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_fto[ixsd](). NFC.



details:   https://anonhg.NetBSD.org/src/rev/93b8b40f51d1
branches:  trunk
changeset: 369787:93b8b40f51d1
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Sep 01 05:58:19 2022 +0000

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

diffstat:

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

diffs (86 lines):

diff -r 89e042ecf777 -r 93b8b40f51d1 sys/arch/powerpc/fpu/fpu_extern.h
--- a/sys/arch/powerpc/fpu/fpu_extern.h Thu Sep 01 05:56:52 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_extern.h Thu Sep 01 05:58:19 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_extern.h,v 1.7 2022/08/30 11:09:34 rin Exp $       */
+/*     $NetBSD: fpu_extern.h,v 1.8 2022/09/01 05:58:19 rin Exp $       */
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -63,10 +63,6 @@
 void fpu_explode(struct fpemu *, struct fpn *, int, int);
 
 /* fpu_implode.c */
-u_int fpu_ftoi(struct fpemu *, struct fpn *, int);
-uint64_t fpu_ftox(struct fpemu *, struct fpn *, int);
-u_int fpu_ftos(struct fpemu *, struct fpn *);
-u_int fpu_ftod(struct fpemu *, struct fpn *, u_int *);
 void fpu_implode(struct fpemu *, struct fpn *, int, u_int *);
 
 /* fpu_mul.c */
diff -r 89e042ecf777 -r 93b8b40f51d1 sys/arch/powerpc/fpu/fpu_implode.c
--- a/sys/arch/powerpc/fpu/fpu_implode.c        Thu Sep 01 05:56:52 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_implode.c        Thu Sep 01 05:58:19 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_implode.c,v 1.12 2022/09/01 05:56:52 rin Exp $ */
+/*     $NetBSD: fpu_implode.c,v 1.13 2022/09/01 05:58:19 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.12 2022/09/01 05:56:52 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.13 2022/09/01 05:58:19 rin Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -64,6 +64,11 @@
 static int toinf(struct fpemu *, int);
 static int round_int(struct fpn *, int *, int, int, int);
 
+static u_int fpu_ftoi(struct fpemu *, struct fpn *, int);
+static uint64_t fpu_ftox(struct fpemu *, struct fpn *, int);
+static u_int fpu_ftos(struct fpemu *, struct fpn *);
+static u_int fpu_ftod(struct fpemu *, struct fpn *, u_int *);
+
 /*
  * Round a number (algorithm from Motorola MC68882 manual, modified for
  * our internal format).  Set inexact exception if rounding is required.
@@ -227,7 +232,7 @@
 /*
  * fpn -> int (int value returned as return value).
  */
-u_int
+static u_int
 fpu_ftoi(struct fpemu *fe, struct fpn *fp, int rn)
 {
        u_int i;
@@ -279,7 +284,7 @@
 /*
  * fpn -> extended int (high bits of int value returned as return value).
  */
-uint64_t
+static uint64_t
 fpu_ftox(struct fpemu *fe, struct fpn *fp, int rn)
 {
        uint64_t i;
@@ -332,7 +337,7 @@
  * fpn -> single (32 bit single returned as return value).
  * We assume <= 29 bits in a single-precision fraction (1.f part).
  */
-u_int
+static u_int
 fpu_ftos(struct fpemu *fe, struct fpn *fp)
 {
        u_int sign = fp->fp_sign << 31;
@@ -413,7 +418,7 @@
  *
  * This code mimics fpu_ftos; see it for comments.
  */
-u_int
+static u_int
 fpu_ftod(struct fpemu *fe, struct fpn *fp, u_int *res)
 {
        u_int sign = fp->fp_sign << 31;



Home | Main Index | Thread Index | Old Index