move ARRAY_SIZE macro to include/common.h
This commit is contained in:
parent
6b7fdcb970
commit
685d85540c
|
@ -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;
|
||||
|
|
|
@ -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_ */
|
||||
|
|
Loading…
Reference in New Issue