Commit | Line | Data |
---|---|---|
7ebd796f JA |
1 | #ifndef FIO_BITMAP_H |
2 | #define FIO_BITMAP_H | |
3 | ||
4 | #include <inttypes.h> | |
e39c0676 | 5 | #include "types.h" |
7ebd796f JA |
6 | |
7 | struct axmap; | |
604d3f5b | 8 | struct axmap *axmap_new(uint64_t nr_bits); |
7ebd796f JA |
9 | void axmap_free(struct axmap *bm); |
10 | ||
7ebd796f JA |
11 | void axmap_set(struct axmap *axmap, uint64_t bit_nr); |
12 | unsigned int axmap_set_nr(struct axmap *axmap, uint64_t bit_nr, unsigned int nr_bits); | |
e39c0676 | 13 | bool axmap_isset(struct axmap *axmap, uint64_t bit_nr); |
7ebd796f JA |
14 | uint64_t axmap_next_free(struct axmap *axmap, uint64_t bit_nr); |
15 | void axmap_reset(struct axmap *axmap); | |
16 | ||
17 | #endif |