summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/fpu
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-02-24 03:01:26 +0000
committermarcel <marcel@FreeBSD.org>2008-02-24 03:01:26 +0000
commitded28f747fe3402c76a5189a35952363c1cb714e (patch)
tree960ecf11df102945163de1b497c75f9727d43231 /sys/powerpc/fpu
parentb02e531c35be9d0c70bff2fc9eb5fe15ea6cd115 (diff)
downloadFreeBSD-src-ded28f747fe3402c76a5189a35952363c1cb714e.zip
FreeBSD-src-ded28f747fe3402c76a5189a35952363c1cb714e.tar.gz
Resolve warnings exposed by LINT.
o Put prototypes in a single header only. o Fix printf format specifiers.
Diffstat (limited to 'sys/powerpc/fpu')
-rw-r--r--sys/powerpc/fpu/fpu_add.c1
-rw-r--r--sys/powerpc/fpu/fpu_emu.c6
-rw-r--r--sys/powerpc/fpu/fpu_emu.h2
-rw-r--r--sys/powerpc/fpu/fpu_extern.h21
-rw-r--r--sys/powerpc/fpu/fpu_subr.c1
5 files changed, 5 insertions, 26 deletions
diff --git a/sys/powerpc/fpu/fpu_add.c b/sys/powerpc/fpu/fpu_add.c
index 375c529..5610b4a 100644
--- a/sys/powerpc/fpu/fpu_add.c
+++ b/sys/powerpc/fpu/fpu_add.c
@@ -58,7 +58,6 @@ __FBSDID("$FreeBSD$");
#include <powerpc/fpu/fpu_arith.h>
#include <powerpc/fpu/fpu_emu.h>
-#include <powerpc/fpu/fpu_extern.h>
struct fpn *
fpu_add(struct fpemu *fe)
diff --git a/sys/powerpc/fpu/fpu_emu.c b/sys/powerpc/fpu/fpu_emu.c
index ef7c186..790647c 100644
--- a/sys/powerpc/fpu/fpu_emu.c
+++ b/sys/powerpc/fpu/fpu_emu.c
@@ -328,7 +328,7 @@ fpu_execute(struct trapframe *tf, struct fpemu *fe, union instr *insn)
/* Store as integer */
ra = instr.i_x.i_ra;
rb = instr.i_x.i_rb;
- DPRINTF(FPE_INSN, ("reg %d has %lx reg %d has %lx\n",
+ DPRINTF(FPE_INSN, ("reg %d has %x reg %d has %x\n",
ra, tf->fixreg[ra], rb, tf->fixreg[rb]));
addr = tf->fixreg[rb];
@@ -358,7 +358,7 @@ fpu_execute(struct trapframe *tf, struct fpemu *fe, union instr *insn)
/* calculate EA of load/store */
ra = instr.i_x.i_ra;
rb = instr.i_x.i_rb;
- DPRINTF(FPE_INSN, ("reg %d has %lx reg %d has %lx\n",
+ DPRINTF(FPE_INSN, ("reg %d has %x reg %d has %x\n",
ra, tf->fixreg[ra], rb, tf->fixreg[rb]));
addr = tf->fixreg[rb];
if (ra != 0)
@@ -375,7 +375,7 @@ fpu_execute(struct trapframe *tf, struct fpemu *fe, union instr *insn)
/* calculate EA of load/store */
ra = instr.i_d.i_ra;
addr = instr.i_d.i_d;
- DPRINTF(FPE_INSN, ("reg %d has %lx displ %lx\n",
+ DPRINTF(FPE_INSN, ("reg %d has %x displ %x\n",
ra, tf->fixreg[ra], addr));
if (ra != 0)
addr += tf->fixreg[ra];
diff --git a/sys/powerpc/fpu/fpu_emu.h b/sys/powerpc/fpu/fpu_emu.h
index 56f1ef8..89ccc36 100644
--- a/sys/powerpc/fpu/fpu_emu.h
+++ b/sys/powerpc/fpu/fpu_emu.h
@@ -167,6 +167,8 @@ void fpu_compare(struct fpemu *, int);
/* Build a new Quiet NaN (sign=0, frac=all 1's). */
struct fpn *fpu_newnan(struct fpemu *);
+void fpu_norm(struct fpn *);
+
/*
* Shift a number right some number of bits, taking care of round/sticky.
* Note that the result is probably not a well-formed number (it will lack
diff --git a/sys/powerpc/fpu/fpu_extern.h b/sys/powerpc/fpu/fpu_extern.h
index cb569e2..d8528d7 100644
--- a/sys/powerpc/fpu/fpu_extern.h
+++ b/sys/powerpc/fpu/fpu_extern.h
@@ -48,36 +48,15 @@ struct fpn;
int fpu_emulate(struct trapframe *, struct fpreg *);
int fpu_execute(struct trapframe *, struct fpemu *, union instr *);
-/* 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 */
int fpu_itof(struct fpn *, u_int);
int fpu_xtof(struct fpn *, u_int64_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, int);
/* fpu_implode.c */
u_int fpu_ftoi(struct fpemu *, struct fpn *);
u_int fpu_ftox(struct fpemu *, struct fpn *, u_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 */
-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 *);
diff --git a/sys/powerpc/fpu/fpu_subr.c b/sys/powerpc/fpu/fpu_subr.c
index e403e18..58b0b3d 100644
--- a/sys/powerpc/fpu/fpu_subr.c
+++ b/sys/powerpc/fpu/fpu_subr.c
@@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$");
#include <powerpc/fpu/fpu_arith.h>
#include <powerpc/fpu/fpu_emu.h>
-#include <powerpc/fpu/fpu_extern.h>
/*
* Shift the given number right rsh bits. Any bits that `fall off' will get
OpenPOWER on IntegriCloud