void Clear_Bit(void *bitSet, uint_t bitPos) { ulong_t offset, bit; FIND_OFFSET_AND_BIT(bitPos, offset, bit); ((unsigned char *) bitSet)[offset] &= ~(1 << bit); }
bool Is_Bit_Set(void *bitSet, uint_t bitPos) { ulong_t offset, bit; FIND_OFFSET_AND_BIT(bitPos, offset, bit); return (((unsigned char *) bitSet)[offset] & (1 << bit)) != 0; }
void Set_Bit(void *bitSet, uint_t bitPos) { ulong_t offset, bit; FIND_OFFSET_AND_BIT(bitPos, offset, bit); ((uchar_t *) bitSet)[offset] |= (1 << bit); }