move ARRAY_SIZE macro to types.h

The ARRAY_SIZE macro was defined in several target files, so move it
to types.h.

This patch also removes two other identical macros: DIM (from jtag.h)
and asizeof (from arm11.h).
This commit is contained in:
Zachary T Welch
2009-11-16 03:29:30 -08:00
parent 10cce4a5fe
commit dc1685ca25
14 changed files with 49 additions and 59 deletions

View File

@@ -50,8 +50,6 @@
* ARM IHI 0014O ... Embedded Trace Macrocell, Architecture Specification
*/
#define ARRAY_SIZE(x) ((int)(sizeof(x)/sizeof((x)[0])))
enum {
RO, /* read/only */
WO, /* write/only */