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