Resolve warnings exposed by LINT.
o Put prototypes in a single header only. o Fix printf format specifiers.
This commit is contained in:
parent
491869163b
commit
cebb2edba8
@ -58,7 +58,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#include <powerpc/fpu/fpu_arith.h>
|
#include <powerpc/fpu/fpu_arith.h>
|
||||||
#include <powerpc/fpu/fpu_emu.h>
|
#include <powerpc/fpu/fpu_emu.h>
|
||||||
#include <powerpc/fpu/fpu_extern.h>
|
|
||||||
|
|
||||||
struct fpn *
|
struct fpn *
|
||||||
fpu_add(struct fpemu *fe)
|
fpu_add(struct fpemu *fe)
|
||||||
|
@ -328,7 +328,7 @@ fpu_execute(struct trapframe *tf, struct fpemu *fe, union instr *insn)
|
|||||||
/* Store as integer */
|
/* Store as integer */
|
||||||
ra = instr.i_x.i_ra;
|
ra = instr.i_x.i_ra;
|
||||||
rb = instr.i_x.i_rb;
|
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]));
|
ra, tf->fixreg[ra], rb, tf->fixreg[rb]));
|
||||||
|
|
||||||
addr = 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 */
|
/* calculate EA of load/store */
|
||||||
ra = instr.i_x.i_ra;
|
ra = instr.i_x.i_ra;
|
||||||
rb = instr.i_x.i_rb;
|
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]));
|
ra, tf->fixreg[ra], rb, tf->fixreg[rb]));
|
||||||
addr = tf->fixreg[rb];
|
addr = tf->fixreg[rb];
|
||||||
if (ra != 0)
|
if (ra != 0)
|
||||||
@ -375,7 +375,7 @@ fpu_execute(struct trapframe *tf, struct fpemu *fe, union instr *insn)
|
|||||||
/* calculate EA of load/store */
|
/* calculate EA of load/store */
|
||||||
ra = instr.i_d.i_ra;
|
ra = instr.i_d.i_ra;
|
||||||
addr = instr.i_d.i_d;
|
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));
|
ra, tf->fixreg[ra], addr));
|
||||||
if (ra != 0)
|
if (ra != 0)
|
||||||
addr += tf->fixreg[ra];
|
addr += tf->fixreg[ra];
|
||||||
|
@ -167,6 +167,8 @@ void fpu_compare(struct fpemu *, int);
|
|||||||
/* Build a new Quiet NaN (sign=0, frac=all 1's). */
|
/* Build a new Quiet NaN (sign=0, frac=all 1's). */
|
||||||
struct fpn *fpu_newnan(struct fpemu *);
|
struct fpn *fpu_newnan(struct fpemu *);
|
||||||
|
|
||||||
|
void fpu_norm(struct fpn *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Shift a number right some number of bits, taking care of round/sticky.
|
* 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
|
* Note that the result is probably not a well-formed number (it will lack
|
||||||
|
@ -48,36 +48,15 @@ struct fpn;
|
|||||||
int fpu_emulate(struct trapframe *, struct fpreg *);
|
int fpu_emulate(struct trapframe *, struct fpreg *);
|
||||||
int fpu_execute(struct trapframe *, struct fpemu *, union instr *);
|
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 */
|
/* fpu_explode.c */
|
||||||
int fpu_itof(struct fpn *, u_int);
|
int fpu_itof(struct fpn *, u_int);
|
||||||
int fpu_xtof(struct fpn *, u_int64_t);
|
int fpu_xtof(struct fpn *, u_int64_t);
|
||||||
int fpu_stof(struct fpn *, u_int);
|
int fpu_stof(struct fpn *, u_int);
|
||||||
int fpu_dtof(struct fpn *, u_int, u_int);
|
int fpu_dtof(struct fpn *, u_int, u_int);
|
||||||
void fpu_explode(struct fpemu *, struct fpn *, int, int);
|
|
||||||
|
|
||||||
/* fpu_implode.c */
|
/* fpu_implode.c */
|
||||||
u_int fpu_ftoi(struct fpemu *, struct fpn *);
|
u_int fpu_ftoi(struct fpemu *, struct fpn *);
|
||||||
u_int fpu_ftox(struct fpemu *, struct fpn *, u_int *);
|
u_int fpu_ftox(struct fpemu *, struct fpn *, u_int *);
|
||||||
u_int fpu_ftos(struct fpemu *, struct fpn *);
|
u_int fpu_ftos(struct fpemu *, struct fpn *);
|
||||||
u_int fpu_ftod(struct fpemu *, struct fpn *, u_int *);
|
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 *);
|
|
||||||
|
@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#include <powerpc/fpu/fpu_arith.h>
|
#include <powerpc/fpu/fpu_arith.h>
|
||||||
#include <powerpc/fpu/fpu_emu.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
|
* Shift the given number right rsh bits. Any bits that `fall off' will get
|
||||||
|
Loading…
x
Reference in New Issue
Block a user