mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-04-24 14:53:34 +08:00
2005-07-04 H.J. Lu <hongjiu.lu@intel.com>
* tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined.
This commit is contained in:
parent
9a5c4b9eb2
commit
b0eec63e04
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user