aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>1998-05-08 19:01:55 -0700
committerRichard Henderson <rth@gcc.gnu.org>1998-05-08 19:01:55 -0700
commit760801691294e8684d7aeae69b5bc317393c0d63 (patch)
tree8fb6e4004d044d5477800072ce41cf40836c78b7
parent53c0919dd910df64aadaf73b9960542c5ee8720a (diff)
downloadgcc-760801691294e8684d7aeae69b5bc317393c0d63.zip
gcc-760801691294e8684d7aeae69b5bc317393c0d63.tar.gz
gcc-760801691294e8684d7aeae69b5bc317393c0d63.tar.bz2
* machmode.h (COMPLEX_MODE_P): New macro.
From-SVN: r19644
-rw-r--r--gcc/machmode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index f1f146f..451f4d1 100644
--- a/gcc/machmode.h
+++ b/gcc/machmode.h
@@ -164,6 +164,11 @@ extern enum mode_class mode_class[];
(GET_MODE_CLASS (MODE) == MODE_FLOAT \
|| GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT)
+/* Nonzero if MODE is a complex mode. */
+#define COMPLEX_MODE_P(MODE) \
+ (GET_MODE_CLASS (MODE) == MODE_COMPLEX_INT \
+ || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT)
+
/* Get the size in bytes of an object of mode MODE. */
extern int mode_size[];