Module Name: src Committed By: rin Date: Mon Sep 5 00:24:24 UTC 2022
Modified Files: src/sys/arch/powerpc/fpu: fpu_explode.c fpu_extern.h Log Message: static-fy fpu_[ixsd]tof(). NFC. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/fpu/fpu_explode.c cvs rdiff -u -r1.9 -r1.10 src/sys/arch/powerpc/fpu/fpu_extern.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/fpu/fpu_explode.c diff -u src/sys/arch/powerpc/fpu/fpu_explode.c:1.12 src/sys/arch/powerpc/fpu/fpu_explode.c:1.13 --- src/sys/arch/powerpc/fpu/fpu_explode.c:1.12 Fri Sep 2 12:40:49 2022 +++ src/sys/arch/powerpc/fpu/fpu_explode.c Mon Sep 5 00:24:24 2022 @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: fpu_explode. #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 @@ __KERNEL_RCSID(0, "$NetBSD: fpu_explode. /* * int -> fpn. */ -int +static int fpu_itof(struct fpn *fp, u_int lo) { @@ -106,7 +111,7 @@ fpu_itof(struct fpn *fp, u_int lo) /* * 64-bit int -> fpn. */ -int +static int fpu_xtof(struct fpn *fp, uint64_t i) { @@ -165,7 +170,7 @@ fpu_xtof(struct fpn *fp, uint64_t i) * 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 @@ fpu_stof(struct fpn *fp, u_int hi) * 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; Index: src/sys/arch/powerpc/fpu/fpu_extern.h diff -u src/sys/arch/powerpc/fpu/fpu_extern.h:1.9 src/sys/arch/powerpc/fpu/fpu_extern.h:1.10 --- src/sys/arch/powerpc/fpu/fpu_extern.h:1.9 Fri Sep 2 12:40:49 2022 +++ src/sys/arch/powerpc/fpu/fpu_extern.h Mon Sep 5 00:24:24 2022 @@ -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 @@ void fpu_compare(struct fpemu *, int); 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 */