assembler: Remove two fixmes.
[b43-tools.git] / assembler / util.h
1 #ifndef BCM43xx_ASM_UTIL_H_
2 #define BCM43xx_ASM_UTIL_H_
3
4 #include <stdlib.h>
5 #include <stdint.h>
6
7
8 #define ARRAY_SIZE(x)   (sizeof(x)/sizeof(x[0]))
9
10
11 void dump(const char *data,
12           size_t size,
13           const char *description);
14
15
16 void * xmalloc(size_t size);
17 char * xstrdup(const char *str);
18
19
20 typedef _Bool bool;
21
22 typedef uint16_t be16_t;
23 typedef uint32_t be32_t;
24
25 be16_t cpu_to_be16(uint16_t x);
26 be32_t cpu_to_be32(uint32_t x);
27
28 #endif /* BCM43xx_ASM_UTIL_H_ */