util.h 409 B

12345678910111213141516171819202122232425
  1. #ifndef BCM43xx_DASM_UTIL_H_
  2. #define BCM43xx_DASM_UTIL_H_
  3. #include <stdlib.h>
  4. #include <stdint.h>
  5. #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
  6. void dump(const char *data,
  7. size_t size,
  8. const char *description);
  9. void * xmalloc(size_t size);
  10. char * xstrdup(const char *str);
  11. void * xrealloc(void *in, size_t size);
  12. typedef _Bool bool;
  13. typedef uint32_t be32_t;
  14. #endif /* BCM43xx_DASM_UTIL_H_ */