diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1997-07-01 15:33:05 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1997-07-01 15:33:05 -0700 |
commit | f953dd66a29dc819ef8a60ab35804b7d1aac6859 (patch) | |
tree | 2c0741238f78d6293ba7bde7c4c7da25c43366e1 | |
parent | 9a252d290356f0eefa926d1ea71ec6531f54bfec (diff) | |
download | gcc-f953dd66a29dc819ef8a60ab35804b7d1aac6859.zip gcc-f953dd66a29dc819ef8a60ab35804b7d1aac6859.tar.gz gcc-f953dd66a29dc819ef8a60ab35804b7d1aac6859.tar.bz2 |
(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
-rw-r--r-- | gcc/config/fp-bit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index bc3ad51..1f6e408 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -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; |