common: add BIT_U8 macro

pull/2534/head
Victor Julien 9 years ago
parent e6044aaf1c
commit 15accc86c9

@ -319,6 +319,7 @@
#define MAX(x, y) (((x)<(y))?(y):(x))
#endif
#define BIT_U8(n) ((uint8_t)(1 << (n)))
#define BIT_U16(n) ((uint16_t)(1 << (n)))
#define BIT_U32(n) (1UL << (n))
#define BIT_U64(n) (1ULL << (n))

Loading…
Cancel
Save