Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvs2svn <>2003-09-16 05:47:54 +0400
committercvs2svn <>2003-09-16 05:47:54 +0400
commit2cb060991433298d2f701adc7fc22adacf88eeb1 (patch)
treeaa0b99e6f84e9b776740fc36646e8e3b919e5268 /include/floatformat.h
parent5be60f99b7d5a81dcbad8c9e1d8812297936052b (diff)
'ezannoni_pie-20030916-branch'. Sprout from cagney_x86i386-20030821-branch 2003-08-21 14:03:24 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch' Cherrypick from master 2003-09-16 01:47:53 UTC Andrew Cagney <cagney@gnu.org> 'Index: include/ChangeLog': ChangeLog MAINTAINERS config/no-executables.m4 configure configure.in include/ChangeLog include/coff/ChangeLog include/coff/i860.h include/dis-asm.h include/elf/ChangeLog include/elf/dwarf2.h include/elf/v850.h include/floatformat.h include/opcode/ChangeLog include/opcode/v850.h install-sh missing src-release
Diffstat (limited to 'include/floatformat.h')
-rw-r--r--include/floatformat.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/include/floatformat.h b/include/floatformat.h
index 53ead3eee..3d0fd7a87 100644
--- a/include/floatformat.h
+++ b/include/floatformat.h
@@ -1,5 +1,5 @@
/* IEEE floating point support declarations, for GDB, the GNU Debugger.
- Copyright 1991, 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
+ Copyright 1991, 1994, 1995, 1997, 2000, 2003 Free Software Foundation, Inc.
This file is part of GDB.
@@ -61,8 +61,12 @@ struct floatformat
unsigned int exp_start;
unsigned int exp_len;
- /* Amount added to "true" exponent. 0x3fff for many IEEE extendeds. */
- unsigned int exp_bias;
+ /* Bias added to a "true" exponent to form the biased exponent. It
+ is intentionally signed as, otherwize, -exp_bias can turn into a
+ very large number (e.g., given the exp_bias of 0x3fff and a 64
+ bit long, the equation (long)(1 - exp_bias) evaluates to
+ 4294950914) instead of -16382). */
+ int exp_bias;
/* Exponent value which indicates NaN. This is the actual value stored in
the float, not adjusted by the exp_bias. This usually consists of all
one bits. */
@@ -109,13 +113,18 @@ extern const struct floatformat floatformat_ia64_quad_little;
Store the double in *TO. */
extern void
-floatformat_to_double PARAMS ((const struct floatformat *, char *, double *));
+floatformat_to_double PARAMS ((const struct floatformat *, const char *, double *));
/* The converse: convert the double *FROM to FMT
and store where TO points. */
extern void
floatformat_from_double PARAMS ((const struct floatformat *,
- double *, char *));
+ const double *, char *));
+
+/* Return non-zero iff the data at FROM is a valid number in format FMT. */
+
+extern int
+floatformat_is_valid PARAMS ((const struct floatformat *fmt, const char *from));
#endif /* defined (FLOATFORMAT_H) */