summaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-12 19:40:09 +0000
committerRichard Stallman <rms@gnu.org>1992-07-12 19:40:09 +0000
commitfa45b1eba375396fd553d9825aa09dd15dad4fba (patch)
treea160c29651f02c2de0fb970c0db93216814d3eba /gcc/machmode.h
parent2cccceff8b3727cb210faed5d654d861564b1c92 (diff)
downloadgcc-fa45b1eba375396fd553d9825aa09dd15dad4fba.tar.gz
entered into RCS
From-SVN: r1574
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r--gcc/machmode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index 8c0121bc6a7..921ffd51fd9 100644
--- a/gcc/machmode.h
+++ b/gcc/machmode.h
@@ -108,7 +108,8 @@ extern int mode_unit_size[];
/* Get the number of units in the object. */
#define GET_MODE_NUNITS(MODE) \
- (GET_MODE_SIZE ((MODE)) / GET_MODE_UNIT_SIZE ((MODE)))
+ ((GET_MODE_UNIT_SIZE ((MODE)) == 0) ? 0 \
+ : (GET_MODE_SIZE ((MODE)) / GET_MODE_UNIT_SIZE ((MODE))))
/* Get the size in bits of an object of mode MODE. */