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 Clean up fpu_extern.h; only a function ...



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

description:
Clean up fpu_extern.h; only a function public to external is fpu_emulate().

Other functions are private to fpu_*.c and therefore live in fpu_emu.h.

Also, drop needless forward struct declarations.

NFC.

diffstat:

 sys/arch/powerpc/fpu/fpu_emu.h    |   4 +++-
 sys/arch/powerpc/fpu/fpu_extern.h |  34 ++--------------------------------
 2 files changed, 5 insertions(+), 33 deletions(-)

diffs (69 lines):

diff -r e8c25335040a -r e449c3c1f91f sys/arch/powerpc/fpu/fpu_emu.h
--- a/sys/arch/powerpc/fpu/fpu_emu.h    Mon Sep 05 00:25:18 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.h    Mon Sep 05 00:27:16 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.h,v 1.9 2022/09/04 13:14:57 rin Exp $ */
+/*     $NetBSD: fpu_emu.h,v 1.10 2022/09/05 00:27:16 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -185,6 +185,8 @@
  */
 int    fpu_shr(struct fpn *, int);
 
+void   fpu_norm(struct fpn *);
+
 void   fpu_explode(struct fpemu *, struct fpn *, int, uint64_t);
 void   fpu_implode(struct fpemu *, struct fpn *, int, uint64_t *);
 
diff -r e8c25335040a -r e449c3c1f91f sys/arch/powerpc/fpu/fpu_extern.h
--- a/sys/arch/powerpc/fpu/fpu_extern.h Mon Sep 05 00:25:18 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_extern.h Mon Sep 05 00:27:16 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_extern.h,v 1.11 2022/09/05 00:25:18 rin Exp $      */
+/*     $NetBSD: fpu_extern.h,v 1.12 2022/09/05 00:27:16 rin Exp $      */
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -35,40 +35,10 @@
 #include <sys/signal.h>
 #include <sys/siginfo.h>
 
-struct proc;
+struct trapframe;
 struct fpreg;
-struct trapframe;
-union instr;
-struct fpemu;
-struct fpn;
 
 /* fpu.c */
 bool fpu_emulate(struct trapframe *, struct fpreg *, ksiginfo_t *);
 
-/* fpu_add.c */
-struct fpn *fpu_add(struct fpemu *);
-
-/* fpu_compare.c */
-void fpu_compare(struct fpemu *, int);
-
-/* fpu_div.c */
-struct fpn *fpu_div(struct fpemu *);
-
-/* fpu_explode.c */
-void fpu_explode(struct fpemu *, struct fpn *, int, uint64_t);
-
-/* fpu_implode.c */
-void fpu_implode(struct fpemu *, struct fpn *, int, uint64_t *);
-
-/* fpu_mul.c */
-struct fpn *fpu_mul(struct fpemu *);
-
-/* fpu_sqrt.c */
-struct fpn *fpu_sqrt(struct fpemu *);
-
-/* fpu_subr.c */
-int fpu_shr(struct fpn *, int);
-void fpu_norm(struct fpn *);
-struct fpn *fpu_newnan(struct fpemu *);
-
 #endif /* _POWERPC_FPU_FPU_EXTERN_H_ */



Home | Main Index | Thread Index | Old Index