summaryrefslogtreecommitdiff
path: root/include/floatformat.h
diff options
context:
space:
mode:
authorcagney <cagney@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-15 21:28:49 +0000
committercagney <cagney@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-15 21:28:49 +0000
commit4b1311e7e5814038e85ec1979590627ed0637fb2 (patch)
treeb72bb9e7cd2a18c3d9482e542b91a97a7d7a2534 /include/floatformat.h
parentf41d3a7ec8da4cd99406b6b5f0ae4bb1ce697e4d (diff)
downloadgcc-4b1311e7e5814038e85ec1979590627ed0637fb2.tar.gz
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.h (struct floatformat): Make "exp_bias" signed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71407 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/floatformat.h')
-rw-r--r--include/floatformat.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/floatformat.h b/include/floatformat.h
index feb3260117c..1d08fd6183f 100644
--- a/include/floatformat.h
+++ b/include/floatformat.h
@@ -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. */