Macro - Bit Operation
·
【Programming】/C
#define Macro_Set_Bit(dest, position) ((dest) |= ((unsigned)0x1>(position)) & 0x1)#define Macro_Check_Bit_Clear(dest, position) (!((((unsigned)dest)>>(position)) & 0x1))#define Macro_Extract_Area(dest, bits, position) ((((unsigned)dest)>>(position)) & (bits))