|
|
#define | MIRKL_BIT_SET(a, b) ((a) |= (1ULL<<(b))) |
| |
|
#define | MIRKL_BIT_CLEAR(a, b) ((a) &= ~(1ULL<<(b))) |
| |
|
#define | MIRKL_BIT_FLIP(a, b) ((a) ^= (1ULL<<(b))) |
| |
|
#define | MIRKL_BIT_CHECK(a, b) ((a) & (1ULL<<(b))) |
| |
|
#define | MIRKL_BITMASK_SET(x, y) ((x) |= (y)) |
| |
|
#define | MIRKL_BITMASK_CLEAR(x, y) ((x) &= (~(y))) |
| |
|
#define | MIRKL_BITMASK_FLIP(x, y) ((x) ^= (y)) |
| |
|
#define | MIRKL_BITMASK_CHECK_ALL(x, y) (((x) & (y)) == (y)) |
| |
|
#define | MIRKL_BITMASK_CHECK_ANY(x, y) ((x) & (y)) |
| |
|
|
unsigned long | mirkl_util_get_bits_from_word (const unsigned int val, const char from, const char to) |
| |
|
unsigned int | mirkl_util_create_mask (unsigned int numEntries, unsigned int *maskWidth) |
| |
|
int | mirkl_util_nsb32 (mirkl_uint32_t) |
| | Returns number of set bits in the input 32 bit unsigned integer.
|
| |
|
int | mirkl_util_nsb64 (mirkl_uint64_t) |
| | Returns number of set bits in the input 64 bit unsigned integer.
|
| |
| mirkl_size_t | mirkl_util_dirname (const char *path, char *dst, mirkl_size_t siz) |
| | Directory name from path string.
|
| |
| mirkl_size_t | mirkl_util_basename (const char *path, char *dst, mirkl_size_t siz) |
| | Base name from path string.
|
| |
| mirkl_uint32_t | mirkl_util_crc32 (mirkl_uint32_t crc, const void *buf, mirkl_size_t size) |
| | Recompute the CRC32 for the data buffer.
|
| |
| mirkl_uint16_t | mirkl_util_crc16 (mirkl_uint16_t crc, const void *buf, mirkl_size_t size) |
| | Recompute the CRC16 for the data buffer.
|
| |