Initialize using ARRAY_SIZE.
+2003-09-27 Mark Kettenis <kettenis@gnu.org>
+
+ * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
+ Initialize using ARRAY_SIZE.
+
2003-09-27 Andrew Cagney <cagney@redhat.com>
* arch-utils.c (deprecated_init_frame_pc_default): Rename
"mxcsr"
};
-static const int i386_num_register_names =
- (sizeof (i386_register_names) / sizeof (*i386_register_names));
+static const int i386_num_register_names = ARRAY_SIZE (i386_register_names);
/* MMX registers. */
"mm4", "mm5", "mm6", "mm7"
};
-static const int i386_num_mmx_regs =
- (sizeof (i386_mmx_names) / sizeof (i386_mmx_names[0]));
+static const int i386_num_mmx_regs = ARRAY_SIZE (i386_mmx_names);
#define MM0_REGNUM NUM_REGS