diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-11-06 08:38:52 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-11-06 08:38:52 +0000 |
commit | 37783865bd0f4e8f822ecc57d80dbbfc9a59bf42 (patch) | |
tree | 422f097a3e186761a863087fa6c10b836fc42a61 /gcc/machmode.h | |
parent | 6c748c6c998fda800c435ad9e00bed57a1aa98a0 (diff) | |
download | gcc-37783865bd0f4e8f822ecc57d80dbbfc9a59bf42.tar.gz |
genmodes.c: Change the word "bitsize" to "precision" throughout.
* genmodes.c: Change the word "bitsize" to "precision" throughout.
* machmode.def: Likewise.
* machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
(GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
(GET_MODE_PRECISION): New macro.
(mode_bitsize): Renamed mode_precision.
* stor-layout.c (mode_for_size, smallest_mode_for_size):
Use GET_MODE_PRECISION; clarify comments.
ada:
* misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
and update for changed meaning of GET_MODE_BITSIZE.
From-SVN: r73295
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 16f979818c3..c978c0a9b52 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -76,15 +76,15 @@ extern const unsigned char mode_class[NUM_MACHINE_MODES]; #define SCALAR_FLOAT_MODE_P(MODE) \ (GET_MODE_CLASS (MODE) == MODE_FLOAT) -/* Get the size in bytes of an object of mode MODE. */ +/* Get the size in bytes and bits of an object of mode MODE. */ extern CONST_MODE_SIZE unsigned char mode_size[NUM_MACHINE_MODES]; -#define GET_MODE_SIZE(MODE) mode_size[MODE] +#define GET_MODE_SIZE(MODE) ((unsigned short) mode_size[MODE]) +#define GET_MODE_BITSIZE(MODE) ((unsigned short) (GET_MODE_SIZE (MODE) * BITS_PER_UNIT)) -/* Get the size in bits of an object of mode MODE. */ - -extern const unsigned short mode_bitsize[NUM_MACHINE_MODES]; -#define GET_MODE_BITSIZE(MODE) mode_bitsize[MODE] +/* Get the number of value bits of an object of mode MODE. */ +extern const unsigned short mode_precision[NUM_MACHINE_MODES]; +#define GET_MODE_PRECISION(MODE) mode_precision[MODE] /* Get a bitmask containing 1 for all bits in a word that fit within mode MODE. */ |