#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
|
typedef uint64_t | bitmap_t |
| This type represents a bitmap (bitset).
|
|
◆ bitmap_clear()
void bitmap_clear |
( |
bitmap_t * | b, |
|
|
uint64_t | n ) |
Clears a bit (sets it to false
).
- Parameters
-
b | a bitmap |
n | the bit to clear |
◆ bitmap_get()
bool bitmap_get |
( |
const bitmap_t * | b, |
|
|
uint64_t | n ) |
Returns true
when the bit is set, false
otherwise.
- Parameters
-
b | a bitmap |
n | the bit to check |
- Returns
true
when the bit to check is set, false
otherwise
◆ bitmap_set()
void bitmap_set |
( |
bitmap_t * | b, |
|
|
uint64_t | n ) |
Sets a bit (sets it to true
).
- Parameters
-
b | a bitmap |
n | the bit to set |