entered into RCS
authorRichard Stallman <rms@gnu.org>
Sun, 12 Jul 1992 19:40:09 +0000 (19:40 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 12 Jul 1992 19:40:09 +0000 (19:40 +0000)
From-SVN: r1574

gcc/machmode.h

index 8c0121bc6a7312c48f73fdd9637186f6f8ef5c42..921ffd51fd9d7b83a558d7c14336af6c1703fbee 100644 (file)
@@ -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.  */