28 typedef uinT32 *BIT_VECTOR;
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)
BIT_VECTOR ExpandBitVector(BIT_VECTOR Vector, int NewNumBits)
BIT_VECTOR NewBitVector(int NumBits)
void FreeBitVector(BIT_VECTOR BitVector)