aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-03-28 00:07:20 +0000
committerRichard Stallman <rms@gnu.org>1992-03-28 00:07:20 +0000
commit11030a604b97b88d30a15173946a966628451155 (patch)
tree9fa5f98825f78665eaba2954cd34e4da8a756fa1
parentc5abcf1dde599cc2b596b9a15ad98b60627d7ed6 (diff)
downloadgcc-11030a604b97b88d30a15173946a966628451155.zip
gcc-11030a604b97b88d30a15173946a966628451155.tar.gz
gcc-11030a604b97b88d30a15173946a966628451155.tar.bz2
*** empty log message ***
From-SVN: r604
-rw-r--r--gcc/real.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 33b7167..3f8c3aa 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -142,9 +142,14 @@ extern double (atof) ();
#define REAL_VALUE_ISNAN(x) (target_isnan (x))
#endif
+/* Determine whether a floating-point value X is negative. */
+#ifndef REAL_VALUE_NEGATIVE
+#define REAL_VALUE_NEGATIVE(x) (target_negative (x))
+#endif
+
/* Determine whether a floating-point value X is minus 0. */
#ifndef REAL_VALUE_MINUS_ZERO
-#define REAL_VALUE_MINUS_ZERO(x) (target_minus_zero (x))
+#define REAL_VALUE_MINUS_ZERO(x) ((x) == 0 && REAL_VALUE_NEGATIVE (x))
#endif
/* Constant real values 0, 1, 2, and -1. */