common: introduce BIT_U16

pull/2266/head
Victor Julien 9 years ago
parent 53ebe4c538
commit 2f5663dfe9

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

Loading…
Cancel
Save