A bitstring is a memory efficient implementation of a sequence of Boolean information with arbitrary but fixed length.
|
defines our version of a BYTE definition Definition at line 48 of file bitstring.c. |
|
defines the number of bits in an unsigned long integer Definition at line 58 of file bitstring.c. Referenced by bitClear(), bitGet(), bitNew(), bitSet(), and resize(). |
|
defines the size of an unsigned long Definition at line 53 of file bitstring.c. Referenced by bitClearAll(), bitClone(), bitCopy(), bitNew(), bitSetAll(), and resize(). |
|
this is defined to a null operation when debugging is switched off. Switch it on by compiling with -DBITSTRINGS_DEBUG Definition at line 121 of file bitstring.c. Referenced by bitAnd(), bitCheck(), bitClear(), bitClearAll(), bitClone(), bitCopy(), bitDelete(), bitGet(), bitIsAllCleared(), bitIsAllSet(), bitOr(), bitPrint(), bitSet(), bitSetAll(), bitSize(), bvAddElement(), bvAndElement(), bvCapacity(), bvClone(), bvDelete(), bvElement(), bvInsertElement(), bvIsEmpty(), bvNotElement(), bvOrElement(), bvRemoveElement(), bvSetElement(), bvSetElements(), bvSize(), and resize(). |
|
return code for size error messages Definition at line 63 of file bitstring.c. |
|
computes a logical AND between two sets of bits sets all the bits in bitstring a that are set to 0 in bitstring b to 0. bitstring b is never modified. the bitstrings must be of the same size.
References check_magic. |
|
checks whether two sets have bits switched on in common
References check_magic. |
|
clears a bit. if no is larger than current size the bitstring is enlarged. intermediate bits are cleared. Bits are numbered from zero upward
References BITS_PER_LONG, check_magic, and resize(). |
|
sets all bits to zero.
References BYTES_PER_LONG, and check_magic. |
|
creates a new bitstring which is a complete clone of bs.
References bitNew(), BYTES_PER_LONG, and check_magic. |
|
copies information from src to dst. dst and src must be bitstrings of the same size
References BYTES_PER_LONG, and check_magic. |
|
deletes bitstring bs and frees memory.
References check_magic. |
|
test for a bit This function checks whether a bitstring has bit at a certain position switched on.
References BITS_PER_LONG, and check_magic. Referenced by bitPrint(). |
|
checks whether all bits are cleared
References check_magic. |
|
checks whether all bits are set
References check_magic. |
|
creates a new bitstring with an initial size of size bits.
References BITS_PER_LONG, and BYTES_PER_LONG. Referenced by bitClone(). |
|
computes a logical OR between two sets of bits sets all the bits in bitstring a that are set to 1 in bitstring b to 1. bitstring b is never modified. the bitstrings must be of the same size.
References check_magic. |
|
prints a bitstring to stdout.
References bitGet(), and check_magic. |
|
sets a bit. if no is larger than current size the bitstring is enlarged. intermediate bits are cleared. Bits are numbered from zero upwards.
References BITS_PER_LONG, check_magic, and resize(). |
|
sets all the bits to one.
References BYTES_PER_LONG, and check_magic. |
|
returns the size of bitstring bs.
References check_magic. |
|
resize bs to size size; sets length, mask and size.
References BITS_PER_LONG, and BYTES_PER_LONG. |