28 using BIT_VECTOR = uint32_t *; 33 #define zero_all_bits(array, length) \ 37 for (index = 0; index < length; index++) \ 41 #define set_all_bits(array, length) \ 45 for (index = 0; index < length; index++) \ 49 #define copy_all_bits(source, dest, length) \ 53 for (index = 0; index < length; index++) \ 54 dest[index] = source[index]; \ 57 #define SET_BIT(array,bit) (array[bit/BITSINLONG]|=1<<(bit&(BITSINLONG-1))) 59 #define reset_bit(array,bit) (array[bit/BITSINLONG]&=~(1<<(bit&(BITSINLONG-1)))) 61 #define test_bit(array,bit) (array[bit/BITSINLONG] & (1<<(bit&(BITSINLONG-1)))) 63 #define WordsInVectorOfSize(NumBits) \ 64 (((NumBits) + BITSINLONG - 1) / BITSINLONG)
void FreeBitVector(BIT_VECTOR BitVector)
BIT_VECTOR NewBitVector(int NumBits)
BIT_VECTOR ExpandBitVector(BIT_VECTOR Vector, int NewNumBits)