From: H.J. Lu Date: Mon, 4 Jul 2005 17:51:36 +0000 (+0000) Subject: 2005-07-04 H.J. Lu X-Git-Tag: gdb-csl-arm-20051020-branchpoint~842 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0eec63e04b6769048c6a4b14d180a7e09c7d104;p=external%2Fbinutils.git 2005-07-04 H.J. Lu * tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 2269c7c..605766a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2005-07-04 H.J. Lu + + * tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined. + 2005-07-01 Nick Clifton * a29k-dis.c: Update to ISO C90 style function declarations and diff --git a/opcodes/tic30-dis.c b/opcodes/tic30-dis.c index eac6c45..9e57050 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;