Go to the source code of this file.
◆ BITSINLONG
no of bits in a long
Definition at line 27 of file bitvec.h.
◆ copy_all_bits
#define copy_all_bits |
( |
|
source, |
|
|
|
dest, |
|
|
|
length |
|
) |
| |
Value:{ \
int index; \
\
for (index = 0; index < length; index++) \
dest[index] = source[index]; \
}
Definition at line 49 of file bitvec.h.
◆ reset_bit
◆ set_all_bits
#define set_all_bits |
( |
|
array, |
|
|
|
length |
|
) |
| |
Value:{ \
int index; \
\
for (index = 0; index < length; index++) \
array[index] = ~0; \
}
Definition at line 41 of file bitvec.h.
◆ SET_BIT
◆ test_bit
◆ WordsInVectorOfSize
◆ zero_all_bits
#define zero_all_bits |
( |
|
array, |
|
|
|
length |
|
) |
| |
Value:{ \
int index; \
\
for (index = 0; index < length; index++) \
array[index] = 0; \
}
Definition at line 33 of file bitvec.h.
◆ BIT_VECTOR
◆ ExpandBitVector()
This routine uses realloc to increase the size of the specified bit vector.
Globals:
- Parameters
-
Vector | bit vector to be expanded |
NewNumBits | new size of bit vector |
- Returns
- New expanded bit vector.
Definition at line 44 of file bitvec.cpp.
#define WordsInVectorOfSize(NumBits)
void * Erealloc(void *ptr, int size)
◆ FreeBitVector()
This routine frees a bit vector. It also decrements the global counter that keeps track of the number of bit vectors allocated. If BitVector is nullptr, then the count is printed to stderr.
Globals:
- BitVectorCount count of number of bit vectors allocated
- Parameters
-
BitVector | bit vector to be freed |
Definition at line 51 of file bitvec.cpp.
◆ NewBitVector()
Allocate and return a new bit vector large enough to hold the specified number of bits.
Globals:
- BitVectorCount number of bit vectors allocated
- Parameters
-
NumBits | number of bits in new bit vector |
- Returns
- New bit vector.
Definition at line 82 of file bitvec.cpp.
#define WordsInVectorOfSize(NumBits)