X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2Faxmap.h;h=aa5976898c114fb8870865db753200a6140cc978;hb=2474b06db61072bcb027c8f3b309b8df3f74627c;hp=3705a1db754514c516511714783435cb54e3f86b;hpb=99b9c5347ca416300f66df165779e06b618bdf8e;p=fio.git diff --git a/lib/axmap.h b/lib/axmap.h index 3705a1db..aa597689 100644 --- a/lib/axmap.h +++ b/lib/axmap.h @@ -2,15 +2,15 @@ #define FIO_BITMAP_H #include +#include "types.h" struct axmap; -struct axmap *axmap_new(unsigned long nr_bits); +struct axmap *axmap_new(uint64_t nr_bits); void axmap_free(struct axmap *bm); -void axmap_clear(struct axmap *axmap, uint64_t bit_nr); void axmap_set(struct axmap *axmap, uint64_t bit_nr); unsigned int axmap_set_nr(struct axmap *axmap, uint64_t bit_nr, unsigned int nr_bits); -int axmap_isset(struct axmap *axmap, uint64_t bit_nr); +bool axmap_isset(struct axmap *axmap, uint64_t bit_nr); uint64_t axmap_next_free(struct axmap *axmap, uint64_t bit_nr); void axmap_reset(struct axmap *axmap);