#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/math.h>
Go to the source code of this file.
|
| static void | bitmap_init (bitmap_t *map, void *buffer, uint64_t length) |
| | Initialize a bitmap.
|
| |
| static bool | bitmap_is_set (bitmap_t *map, uint64_t idx) |
| | Check if a bit is set in the bitmap.
|
| |
| static void | bitmap_set (bitmap_t *map, uint64_t index) |
| | Set a bit in the bitmap.
|
| |
| static void | bitmap_set_range (bitmap_t *map, uint64_t low, uint64_t high) |
| | Set a range of bits in the bitmap.
|
| |
| static uint64_t | bitmap_find_clear_region_and_set (bitmap_t *map, uint64_t length, uintptr_t maxIdx, uint64_t align) |
| | Find a clear region of specified length and alignment, and set it.
|
| |
| static void | bitmap_clear (bitmap_t *map, uint64_t index) |
| | Clear a bit in the bitmap.
|
| |
| static void | bitmap_clear_range (bitmap_t *map, uint64_t low, uint64_t high) |
| | Clear a range of bits in the bitmap.
|
| |
| static uint64_t | bitmap_sum (bitmap_t *map, uint64_t low, uint64_t high) |
| | Sum the number of set bits in a range.
|
| |
| static uint64_t | bitmap_find_first_clear (bitmap_t *map) |
| | Find the first clear bit in the bitmap.
|
| |
| static uint64_t | bitmap_find_first_set (bitmap_t *map, uint64_t startIdx) |
| | Find the first set bit in the bitmap.
|
| |