aboutsummaryrefslogtreecommitdiff
path: root/gdb/doublest.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-08 17:18:16 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-08 17:18:16 +0000
commit5ef2d0aac2c4d4f24104d79669f833b05b80252f (patch)
tree7200d8180e4f01414794855cc8ef246da957962e /gdb/doublest.h
parentc6fee705095d5ea5f03ff36a043333b805bd0551 (diff)
downloadgdb-5ef2d0aac2c4d4f24104d79669f833b05b80252f.zip
gdb-5ef2d0aac2c4d4f24104d79669f833b05b80252f.tar.gz
gdb-5ef2d0aac2c4d4f24104d79669f833b05b80252f.tar.bz2
2004-08-08 Andrew Cagney <cagney@gnu.org>
* gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single) (builtin_type_ieee_double, builtin_type_ia64_quad) (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of BE/LE floating-point types. * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single) (builtin_type_ieee_double, builtin_type_ia64_quad) (builtin_type_ia64_spill): Declare. * doublest.c (_initialize_doublest, floatformat_ieee_single) (floatformat_ieee_double, floatformat_arm_ext) (floatformat_ia64_spill, floatformat_ia64_quad): Add tables of LE/BE floatformats. * doublest.h: (struct floatformat, floatformat_ieee_single) (floatformat_ieee_double, floatformat_arm_ext) (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
Diffstat (limited to 'gdb/doublest.h')
-rw-r--r--gdb/doublest.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doublest.h b/gdb/doublest.h
index 668efa7..a568862 100644
--- a/gdb/doublest.h
+++ b/gdb/doublest.h
@@ -25,6 +25,7 @@
#define DOUBLEST_H
struct type;
+struct floatformat;
/* Setup definitions for host and target floating point formats. We need to
consider the format for `float', `double', and `long double' for both target
@@ -87,4 +88,11 @@ extern void convert_typed_floating (const void *from,
const struct type *from_type,
void *to, const struct type *to_type);
+/* Table of convenient float-formats. */
+extern const struct floatformat *floatformat_ieee_single[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_ieee_double[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_arm_ext[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_ia64_spill[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_ia64_quad[BFD_ENDIAN_UNKNOWN];
+
#endif