diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-07-04 17:51:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-07-04 17:51:36 +0000 |
commit | b0eec63e04b6769048c6a4b14d180a7e09c7d104 (patch) | |
tree | 2d367bcd5a4f1b342123e225397f7399b37232de /opcodes/tic30-dis.c | |
parent | 2005-07-04 Zack Weinberg <zack@codesourcery.com> (diff) | |
download | binutils-gdb-b0eec63e04b6769048c6a4b14d180a7e09c7d104.tar.gz binutils-gdb-b0eec63e04b6769048c6a4b14d180a7e09c7d104.tar.bz2 binutils-gdb-b0eec63e04b6769048c6a4b14d180a7e09c7d104.zip |
2005-07-04 H.J. Lu <hongjiu.lu@intel.com>
* tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined.
Diffstat (limited to 'opcodes/tic30-dis.c')
-rw-r--r-- | opcodes/tic30-dis.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opcodes/tic30-dis.c b/opcodes/tic30-dis.c index eac6c4571df..9e57050f130 100644 --- a/opcodes/tic30-dis.c +++ b/opcodes/tic30-dis.c @@ -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; |