9
0
Fork 0

move ARRAY_SIZE macro to include/common.h

This commit is contained in:
Sascha Hauer 2007-09-28 19:46:37 +02:00
parent 6b7fdcb970
commit 685d85540c
2 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,6 @@ static void memcpy32(void *trg, void *src, int size)
*t++ = *s++;
}
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
int loadxc(int xcno) {
/* stop xmac / xpec */
XMAC_REG(xcno, XMAC_RPU_HOLD_PC) = RPU_HOLD_PC;

View File

@ -169,4 +169,6 @@ int arch_execute(unsigned long address, int argc, char *argv[]);
int run_shell(void);
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif /* __COMMON_H_ */