* machmode.h (COMPLEX_MODE_P): New macro.
authorRichard Henderson <rth@gcc.gnu.org>
Sat, 9 May 1998 02:01:55 +0000 (19:01 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 9 May 1998 02:01:55 +0000 (19:01 -0700)
From-SVN: r19644

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[];