• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂a58f15343cabf4a90ff8eded8f802a5ba2f5331b (tree)
時間2003-09-16 06:28:56
作者Andrew Cagney <cagney@redh...>
CommiterAndrew Cagney

Log Message

2003-09-15 Andrew Cagney <cagney@redhat.com>

* floatformat.h (struct floatformat): Make "exp_bias" signed.

Change Summary

差異

--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
1+2003-09-15 Andrew Cagney <cagney@redhat.com>
2+
3+ * floatformat.h (struct floatformat): Make "exp_bias" signed.
4+
15 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
26
37 * floatformat.h (floatformat_is_valid): Add prototype.
--- a/include/floatformat.h
+++ b/include/floatformat.h
@@ -61,8 +61,12 @@ struct floatformat
6161
6262 unsigned int exp_start;
6363 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;
6670 /* Exponent value which indicates NaN. This is the actual value stored in
6771 the float, not adjusted by the exp_bias. This usually consists of all
6872 one bits. */