diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-06-28 01:18:58 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-06-28 01:18:58 +0000 |
commit | eef261c694d66faf3d7db98090349368759f0304 (patch) | |
tree | 804e5a02c1ea5236fc8fefb13d79b35fc2136f43 /gcc/machmode.h | |
parent | f3d8b68cd41ac69b3c26cac6505c0214acbe2d5f (diff) | |
download | gcc-eef261c694d66faf3d7db98090349368759f0304.tar.gz |
(INTEGRAL_MODE_P, FLOAT_MODE_P): New macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4778 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 240bd5725f3..bb069d9997b 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -1,5 +1,5 @@ /* Machine mode definitions for GNU C-Compiler; included by rtl.h and tree.h. - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991, 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -104,6 +104,17 @@ enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC, extern enum mode_class mode_class[]; #define GET_MODE_CLASS(MODE) (mode_class[(int)(MODE)]) +/* Nonzero if MODE is an integral mode. */ +#define INTEGRAL_MODE_P(MODE) \ + (GET_MODE_CLASS (MODE) == MODE_INT \ + || GET_MODE_CLASS (MODE) == MODE_PARTIAL_INT \ + || GET_MODE_CLASS (MODE) == MODE_COMPLEX_INT) + +/* Nonzero if MODE is a floating-point mode. */ +#define FLOAT_MODE_P(MODE) \ + (GET_MODE_CLASS (MODE) == MODE_FLOAT \ + || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT) + /* Get the size in bytes of an object of mode MODE. */ extern int mode_size[]; |