* machmode.h (COMPLEX_MODE_P): New macro.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 May 1998 02:01:55 +0000 (02:01 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 May 1998 02:01:55 +0000 (02:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19644 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/machmode.h

index f1f146f..451f4d1 100644 (file)
@@ -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[];