2005-07-04 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 4 Jul 2005 17:51:36 +0000 (17:51 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 4 Jul 2005 17:51:36 +0000 (17:51 +0000)
* tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined.

opcodes/ChangeLog
opcodes/tic30-dis.c

index 2269c7cce36a69e8ab7222d58bcecec6f8a91ec0..605766a85a0634a0533381ba87e2313389135ad9 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined.
+
 2005-07-01  Nick Clifton  <nickc@redhat.com>
 
        * a29k-dis.c: Update to ISO C90 style function declarations and
index eac6c4571df329e9a4228927aa4639b44bddf1d9..9e57050f1302bd8bf9cc3221bcb96b4c202f1256 100644 (file)
@@ -302,10 +302,17 @@ cnvt_tmsfloat_ieee (unsigned long tmsfloat, int size, float *ieeefloat)
     {
       if (mant == 0)
        *ieeefloat = ERANGE;
+#ifdef HUGE_VALF
+      if (sign == 0)
+       *ieeefloat = HUGE_VALF;
+      else
+       *ieeefloat = -HUGE_VALF;
+#else
       if (sign == 0)
        *ieeefloat = 1.0 / 0.0;
       else
        *ieeefloat = -1.0 / 0.0;
+#endif
       return 1;
     }
   exp >>= 1;
This page took 0.035718 seconds and 4 git commands to generate.