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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176501
@ -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)
|
||||
|
@ -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];
|
||||
|
@ -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
|
||||
|
@ -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 *);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user