diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-03-09 18:47:18 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-03-09 18:47:18 -0500 |
commit | 281bb5e4ea53f02487969ac7346e96bab347d62e (patch) | |
tree | 513c38941fd62a4d238122ef3733c462ce7264e2 /gcc | |
parent | b9b5c1b3764818c3446edc4668c60bf7bed59c87 (diff) | |
download | gcc-281bb5e4ea53f02487969ac7346e96bab347d62e.zip gcc-281bb5e4ea53f02487969ac7346e96bab347d62e.tar.gz gcc-281bb5e4ea53f02487969ac7346e96bab347d62e.tar.bz2 |
(target_negative): -0 counts as negative.
From-SVN: r6735
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/real.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -824,19 +824,14 @@ target_isnan (x) /* Check for a negative REAL_VALUE_TYPE number. - * this means strictly less than zero, not -0. + * This just checks the sign bit, so that -0 counts as negative. */ int target_negative (x) REAL_VALUE_TYPE x; { - unsigned EMUSHORT e[NE]; - - GET_REAL (&x, e); - if (ecmp (e, ezero) == -1) - return (1); - return (0); + return ereal_isneg (x); } /* Expansion of REAL_VALUE_TRUNCATE. |