summaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-09 02:01:55 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-09 02:01:55 +0000
commit30e521fa7b772859d4d27a8a5d851bc66dc12a8e (patch)
tree8fb6e4004d044d5477800072ce41cf40836c78b7 /gcc/machmode.h
parente62191045995f44420a2eac8363471f94354a7d7 (diff)
downloadgcc-30e521fa7b772859d4d27a8a5d851bc66dc12a8e.tar.gz
* machmode.h (COMPLEX_MODE_P): New macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19644 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r--gcc/machmode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index f1f146f2ecf..451f4d1304c 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[];