Loading...
Searching...
No Matches
Go to the documentation of this file. 1#ifndef __BINARYCONST_H__
2#define __BINARYCONST_H__
14#define HEX__(n) 0x##n##LU
17#define B8__(x) ((x&0x0000000FLU)?1:0) \
18 +((x&0x000000F0LU)?2:0) \
19 +((x&0x00000F00LU)?4:0) \
20 +((x&0x0000F000LU)?8:0) \
21 +((x&0x000F0000LU)?16:0) \
22 +((x&0x00F00000LU)?32:0) \
23 +((x&0x0F000000LU)?64:0) \
24 +((x&0xF0000000LU)?128:0)
32#define B8(d) ((unsigned char)B8__(HEX__(d)))
35#define B16(dmsb,dlsb) (((unsigned short)B8(dmsb)<<8) + B8(dlsb))