add bool and bits
This commit is contained in:
parent
b35237eec1
commit
7e38aa9a64
@ -13,5 +13,39 @@ typedef unsigned char uchar;
|
|||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
typedef unsigned long ulong;
|
typedef unsigned long ulong;
|
||||||
|
|
||||||
|
typedef enum bool {false=0, true=1};
|
||||||
|
|
||||||
|
#define BIT00 1ul << 00
|
||||||
|
#define BIT01 1ul << 01
|
||||||
|
#define BIT02 1ul << 02
|
||||||
|
#define BIT03 1ul << 03
|
||||||
|
#define BIT04 1ul << 04
|
||||||
|
#define BIT05 1ul << 05
|
||||||
|
#define BIT06 1ul << 06
|
||||||
|
#define BIT07 1ul << 07
|
||||||
|
#define BIT08 1ul << 08
|
||||||
|
#define BIT09 1ul << 09
|
||||||
|
#define BIT10 1ul << 10
|
||||||
|
#define BIT11 1ul << 11
|
||||||
|
#define BIT12 1ul << 12
|
||||||
|
#define BIT13 1ul << 13
|
||||||
|
#define BIT14 1ul << 14
|
||||||
|
#define BIT15 1ul << 15
|
||||||
|
#define BIT16 1ul << 16
|
||||||
|
#define BIT17 1ul << 17
|
||||||
|
#define BIT18 1ul << 18
|
||||||
|
#define BIT19 1ul << 19
|
||||||
|
#define BIT20 1ul << 20
|
||||||
|
#define BIT21 1ul << 21
|
||||||
|
#define BIT22 1ul << 22
|
||||||
|
#define BIT23 1ul << 23
|
||||||
|
#define BIT24 1ul << 24
|
||||||
|
#define BIT25 1ul << 25
|
||||||
|
#define BIT26 1ul << 26
|
||||||
|
#define BIT27 1ul << 27
|
||||||
|
#define BIT28 1ul << 28
|
||||||
|
#define BIT29 1ul << 29
|
||||||
|
#define BIT30 1ul << 30
|
||||||
|
#define BIT31 1ul << 31
|
||||||
|
|
||||||
#endif /* TYPEDEFEXTENTION_H_ */
|
#endif /* TYPEDEFEXTENTION_H_ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user