/**
* Units needed for a given highest bit.
* This implementation always allocates units in a multiple of 16 bytes.
/**
* Units needed for a given highest bit.
* This implementation always allocates units in a multiple of 16 bytes.
/**
* Compute the size in bytes needed for a bitseti, overall.
* This also include the size for the bitset data structure.
* This implementation computes the size in wat, that the bitset units
* can be aligned to 16 bytes.
/**
* Compute the size in bytes needed for a bitseti, overall.
* This also include the size for the bitset data structure.
* This implementation computes the size in wat, that the bitset units
* can be aligned to 16 bytes.
-#define _bitset_overall_size(bitset_base_size,highest_bit) \
- (bitset_base_size + _bitset_units(highest_bit) * BS_UNIT_SIZE)
+#define _bitset_overall_size(bitset_base_size,size) \
+ (bitset_base_size + _bitset_units(size) * BS_UNIT_SIZE)
/**
* calculate the pointer to the data space of the bitset.
* @param data The base address of the allocated memory
* @param bitset_base_size The size of the basical bitset data structure
/**
* calculate the pointer to the data space of the bitset.
* @param data The base address of the allocated memory
* @param bitset_base_size The size of the basical bitset data structure
-#define _bitset_data_ptr(data,bitset_base_size,highest_bit) \
- ((unsigned long *) ((char *) data + bitset_base_size))
+#define _bitset_data_ptr(data,bitset_base_size,size) \
+ ((bitset_unit_t *) ((char *) data + bitset_base_size))
* @return The Number of leading zeroes.
*/
#define _bitset_inside_ntz(unit_ptr) _bitset_std_inside_ntz(unit_ptr)
* @return The Number of leading zeroes.
*/
#define _bitset_inside_ntz(unit_ptr) _bitset_std_inside_ntz(unit_ptr)