diff options
author | Ben Elliston <bje@au.ibm.com> | 2000-12-23 11:51:04 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2000-12-23 11:51:04 +0000 |
commit | b94c0966447e3864d91b17b0f71a27483a8a16a5 (patch) | |
tree | 679699739b9a88e56de792c78ec7d8826ce6c9ed /sim/common/sim-fpu.h | |
parent | b21f0843bf0b6a911c96408de2edf6406a0e72ac (diff) | |
download | gdb-b94c0966447e3864d91b17b0f71a27483a8a16a5.zip gdb-b94c0966447e3864d91b17b0f71a27483a8a16a5.tar.gz gdb-b94c0966447e3864d91b17b0f71a27483a8a16a5.tar.bz2 |
2000-12-15 Ben Elliston <bje@redhat.com>
* sim-fpu.h (sim_fpu_printn_fpu): Declare.
* sim-fpu.c (print_bits): Add digits parameter. Print only as many
trailing digits as specified (-1 to print all digits).
(sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
(sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
to print_bits ().
Diffstat (limited to 'sim/common/sim-fpu.h')
-rw-r--r-- | sim/common/sim-fpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/sim-fpu.h b/sim/common/sim-fpu.h index 1f40676..91adad8 100644 --- a/sim/common/sim-fpu.h +++ b/sim/common/sim-fpu.h @@ -402,10 +402,17 @@ extern const sim_fpu sim_fpu_max64; typedef void sim_fpu_print_func (void *, char *, ...); +/* Print a sim_fpu with full precision. */ INLINE_SIM_FPU (void) sim_fpu_print_fpu (const sim_fpu *f, sim_fpu_print_func *print, void *arg); +/* Print a sim_fpu with `n' trailing digits. */ +INLINE_SIM_FPU (void) sim_fpu_printn_fpu (const sim_fpu *f, + sim_fpu_print_func *print, + int digits, + void *arg); + INLINE_SIM_FPU (void) sim_fpu_print_status (int status, sim_fpu_print_func *print, void *arg); |