|
Defines |
| #define | EGBIT_COUNT(x, c) ((x) & EGBIT_MASK(c)) + (((x) >> (EGBIT_TWO(c))) & EGBIT_MASK(c)) |
| #define | EGBIT_MASK(c) (((unsigned int)(-1)) / (EGBIT_TWO(EGBIT_TWO(c)) + 1u)) |
| #define | EGBIT_TWO(c) (0x1u << (c)) |
Functions |
| int | EGbitAnd (EGbitset_t *dst, const EGbitset_t *src, const unsigned int from, const unsigned int to) |
| int | EGbitCopy (bit_int_t *const a, const bit_int_t *const b, const unsigned int from, const unsigned int to) |
| EGbitset_t | EGbitCount (bit_int_t *bitset, const unsigned int from, const unsigned int to) |
| | Count the number of on-bits in a bit-map.
|
| EGbitset_t | EGbitElemBitCount (EGbitset_t n) |
| | Count number of on bits on 32-bit integers.
|
| int | EGbitIsEqual (const bit_int_t *a, const bit_int_t *b, const unsigned int from, const unsigned int to) |
| int | EGbitIsLeq (const bit_int_t *a, const bit_int_t *b, const unsigned int from, const unsigned int to) |
| int | EGbitLeftShift (bit_int_t *dst, const bit_int_t *src, const unsigned int shift, const unsigned int from, const unsigned int to) |
| unsigned int | EGbitNext (const EGbitset_t *dst, const unsigned int pos, const unsigned int size) |
| int | EGbitOr (EGbitset_t *dst, const EGbitset_t *src, const unsigned int from, const unsigned int to) |
| int | EGbitPlus (bit_int_t *dst, const bit_int_t *src, const unsigned int from, const unsigned int to) |
| unsigned int | EGbitPrev (const EGbitset_t *dst, const unsigned int pos) |
| int | EGbitReset (EGbitset_t *dst, const unsigned int from, const unsigned int to) |
| int | EGbitRightShift (bit_int_t *dst, const bit_int_t *src, const unsigned int shift, const unsigned int from, const unsigned int to) |
| int | EGbitSanity (void) |
| int | EGbitSet (EGbitset_t *const dst, const unsigned int pos) |
| int | EGbitTest (EGbitset_t const *const dst, const unsigned int pos) |
| int | EGbitUnset (bit_int_t *dst, const unsigned int pos) |
| int | EGbitXor (EGbitset_t *dst, const EGbitset_t *src, const unsigned int from, const unsigned int to) |
| void | EGfreeBitSet (void *bitfield, const size_t size, EGmemPool_t *mem) |
| EGbitset_t * | EGnewBitSet (EGmemPool_t *mem, size_t *n) |