bit_macros.h 327 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#define B1 (0x0001)
#define B2 (0x0003)
#define B3 (0x0007)
#define B4 (0x000F)
#define B5 (0x001F)
#define B6 (0x003F)
#define B7 (0x007F)
#define B8 (0x00FF)
#define B9 (0x01FF)
#define B10 (0x03FF)
#define B11 (0x07FF)
#define B12 (0x0FFF)
#define B13 (0x1FFF)
#define B14 (0x3FFF)
#define B15 (0x7FFF)
#define B16 (0xFFFF)