diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-03-07 16:09:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-03-07 16:09:03 +0000 |
commit | 39424bef9143202f0b7fc25b73c81db580eb253c (patch) | |
tree | b0005bf91d34da2269e757c75722bbd9ed51139f /gdb/defs.h | |
parent | bcdd92f3e09bfbb42f46281bab7619f8c40d10a3 (diff) | |
download | gdb-39424bef9143202f0b7fc25b73c81db580eb253c.zip gdb-39424bef9143202f0b7fc25b73c81db580eb253c.tar.gz gdb-39424bef9143202f0b7fc25b73c81db580eb253c.tar.bz2 |
* defs.h: Provide prototypes for floatformat_is_negative,
floatformat_is_nan and floatformat_mantissa.
* utils.c: Include "gdb_assert.h".
(floatformat_is_negative): New function.
(floatformat_is_nan): New function.
(floatformat_mantissa): New function.
* valprint.c: Include "floatformat.h".
(print_floating): Get rid of the Linux-specific
TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
help these new functions. Print NaN's in a format conforming to
ISO C99.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1124,8 +1124,12 @@ extern void floatformat_to_doublest (const struct floatformat *, char *, DOUBLEST *); extern void floatformat_from_doublest (const struct floatformat *, DOUBLEST *, char *); -extern DOUBLEST extract_floating (void *, int); +extern int floatformat_is_negative (const struct floatformat *, char *); +extern int floatformat_is_nan (const struct floatformat *, char *); +extern char *floatformat_mantissa (const struct floatformat *, char *); + +extern DOUBLEST extract_floating (void *, int); extern void store_floating (void *, int, DOUBLEST); /* On some machines there are bits in addresses which are not really |