diff options
author | H.J. Lu <hjl@lucon.org> | 2005-07-04 17:51:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2005-07-04 17:51:36 +0000 |
commit | cd6eecfc0dc46923ae8c5795e1d490977c7511c1 (patch) | |
tree | 4c210436841f7e38818ca496a460dd2e589ffabf /opcodes/tic30-dis.c | |
parent | a81508e9d7c967ab91ebfb1d595ebff02aac892d (diff) | |
download | binutils-redhat-cd6eecfc0dc46923ae8c5795e1d490977c7511c1.tar.gz |
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 eac6c4571d..9e57050f13 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; |