diff options
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 58 |
1 files changed, 0 insertions, 58 deletions
@@ -1255,64 +1255,6 @@ extern void store_address (void *, int, LONGEST); extern void store_typed_address (void *buf, struct type *type, CORE_ADDR addr); -/* Setup definitions for host and target floating point formats. We need to - consider the format for `float', `double', and `long double' for both target - and host. We need to do this so that we know what kind of conversions need - to be done when converting target numbers to and from the hosts DOUBLEST - data type. */ - -/* This is used to indicate that we don't know the format of the floating point - number. Typically, this is useful for native ports, where the actual format - is irrelevant, since no conversions will be taking place. */ - -extern const struct floatformat floatformat_unknown; - -#if HOST_BYTE_ORDER == BIG_ENDIAN -#ifndef HOST_FLOAT_FORMAT -#define HOST_FLOAT_FORMAT &floatformat_ieee_single_big -#endif -#ifndef HOST_DOUBLE_FORMAT -#define HOST_DOUBLE_FORMAT &floatformat_ieee_double_big -#endif -#else /* LITTLE_ENDIAN */ -#ifndef HOST_FLOAT_FORMAT -#define HOST_FLOAT_FORMAT &floatformat_ieee_single_little -#endif -#ifndef HOST_DOUBLE_FORMAT -#define HOST_DOUBLE_FORMAT &floatformat_ieee_double_little -#endif -#endif - -#ifndef HOST_LONG_DOUBLE_FORMAT -#define HOST_LONG_DOUBLE_FORMAT &floatformat_unknown -#endif - -/* Use `long double' if the host compiler supports it. (Note that this is not - necessarily any longer than `double'. On SunOS/gcc, it's the same as - double.) This is necessary because GDB internally converts all floating - point values to the widest type supported by the host. - - There are problems however, when the target `long double' is longer than the - host's `long double'. In general, we'll probably reduce the precision of - any such values and print a warning. */ - -#ifdef HAVE_LONG_DOUBLE -typedef long double DOUBLEST; -#else -typedef double DOUBLEST; -#endif - -extern void floatformat_to_doublest (const struct floatformat *, - char *, DOUBLEST *); -extern void floatformat_from_doublest (const struct floatformat *, - DOUBLEST *, char *); - -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); /* From valops.c */ |