(float_to_usi): Move code for negative numbers before code for infinity.

(float_to_usi): Move code for negative numbers before code
for infinity.  Modify infinty code to only handle positive infinities.

From-SVN: r14368
This commit is contained in:
Jim Wilson 1997-07-01 15:33:05 -07:00
parent 9a252d2903
commit f953dd66a2
1 changed files with 3 additions and 3 deletions

View File

@ -1300,12 +1300,12 @@ float_to_usi (FLO_type arg_a)
return 0;
if (isnan (&a))
return 0;
/* get reasonable MAX_USI_INT... */
if (isinf (&a))
return a.sign ? MAX_USI_INT : 0;
/* it is a negative number */
if (a.sign)
return 0;
/* get reasonable MAX_USI_INT... */
if (isinf (&a))
return MAX_USI_INT;
/* it is a number, but a small one */
if (a.normal_exp < 0)
return 0;