2003-09-15 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 15 Sep 2003 21:28:56 +0000 (21:28 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 15 Sep 2003 21:28:56 +0000 (21:28 +0000)
* floatformat.h (struct floatformat): Make "exp_bias" signed.

include/ChangeLog
include/floatformat.h

index b23b527b59a11ad8284cd4b8d491a0f79a6fb36c..a39d786c61edac6f6e279ae8dfe69b3454346a65 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-15  Andrew Cagney  <cagney@redhat.com>
+
+       * floatformat.h (struct floatformat): Make "exp_bias" signed.
+
 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
 
        * floatformat.h (floatformat_is_valid): Add prototype.
index feb3260117c495348b51817e4bc2f0837f36a060..1d08fd6183f06945987d2bc2159fc1b53cff2b5b 100644 (file)
@@ -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.  */
This page took 0.027659 seconds and 4 git commands to generate.