(target_negative): -0 counts as negative.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 9 Mar 1994 23:47:18 +0000 (18:47 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 9 Mar 1994 23:47:18 +0000 (18:47 -0500)
From-SVN: r6735

gcc/real.c

index 2f0652624429a5d066cb1fae313cc9289450438a..16d9ebcc696cdec03ada49d26479384aedb2066f 100644 (file)
@@ -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.