GNU Binutils with patches for OS216
修訂 | a58f15343cabf4a90ff8eded8f802a5ba2f5331b (tree) |
---|---|
時間 | 2003-09-16 06:28:56 |
作者 | Andrew Cagney <cagney@redh...> |
Commiter | Andrew Cagney |
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.h (struct floatformat): Make "exp_bias" signed.
@@ -1,3 +1,7 @@ | ||
1 | +2003-09-15 Andrew Cagney <cagney@redhat.com> | |
2 | + | |
3 | + * floatformat.h (struct floatformat): Make "exp_bias" signed. | |
4 | + | |
1 | 5 | 2003-09-15 Daniel Jacobowitz <drow@mvista.com> |
2 | 6 | |
3 | 7 | * floatformat.h (floatformat_is_valid): Add prototype. |
@@ -61,8 +61,12 @@ struct floatformat | ||
61 | 61 | |
62 | 62 | unsigned int exp_start; |
63 | 63 | unsigned int exp_len; |
64 | - /* Amount added to "true" exponent. 0x3fff for many IEEE extendeds. */ | |
65 | - unsigned int exp_bias; | |
64 | + /* Bias added to a "true" exponent to form the biased exponent. It | |
65 | + is intentionally signed as, otherwize, -exp_bias can turn into a | |
66 | + very large number (e.g., given the exp_bias of 0x3fff and a 64 | |
67 | + bit long, the equation (long)(1 - exp_bias) evaluates to | |
68 | + 4294950914) instead of -16382). */ | |
69 | + int exp_bias; | |
66 | 70 | /* Exponent value which indicates NaN. This is the actual value stored in |
67 | 71 | the float, not adjusted by the exp_bias. This usually consists of all |
68 | 72 | one bits. */ |