[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
char BitArr [...];
#define Bit(n) (BitArr[(n)>>3] & (1<<((n)&7)))
#define SetBit(n) { BitArr[(n)>>3] |= (1<<((n)&7)); }
#define ResetBit(n) { BitArr[(n)>>3] &= ~(1<<((n)&7)); }
void main()
{
......if (Bit(10)) ResetBit(10)
else SetBit(10);
......
}
E-mail: info@telesys.ru