summaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-12 19:40:09 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-07-12 19:40:09 +0000
commita886c680e33a1f799c1dc37e091ce294b8ed9c47 (patch)
treea160c29651f02c2de0fb970c0db93216814d3eba /gcc/machmode.h
parenta090b5c1dbcc163898a669a8f5ee7051283b4edc (diff)
downloadgcc-a886c680e33a1f799c1dc37e091ce294b8ed9c47.tar.gz
entered into RCS
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1574 138bc75d-0d04-0410-961f-82ee72b054a4
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. */