Merge branch 'evelu-peak' of https://github.com/ErwanAliasr1/fio
[fio.git] / lib / axmap.h
... / ...
CommitLineData
1#ifndef FIO_BITMAP_H
2#define FIO_BITMAP_H
3
4#include <inttypes.h>
5#include "types.h"
6
7struct axmap;
8struct axmap *axmap_new(uint64_t nr_bits);
9void axmap_free(struct axmap *bm);
10
11void axmap_set(struct axmap *axmap, uint64_t bit_nr);
12unsigned int axmap_set_nr(struct axmap *axmap, uint64_t bit_nr, unsigned int nr_bits);
13bool axmap_isset(struct axmap *axmap, uint64_t bit_nr);
14uint64_t axmap_next_free(struct axmap *axmap, uint64_t bit_nr);
15void axmap_reset(struct axmap *axmap);
16
17#endif