X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2Faxmap.h;h=a7a6f9429b8163e5c5d239a402d1d9aabd83ce63;hb=baa78fdc7dd42d54595a2678f759fe842f990912;hp=edfeba80d854463eb0ada915d22bf493d7df4cb9;hpb=7ebd796f4e50c21d652e62bf1e112755b0f338a8;p=fio.git diff --git a/lib/axmap.h b/lib/axmap.h index edfeba80..a7a6f942 100644 --- a/lib/axmap.h +++ b/lib/axmap.h @@ -2,6 +2,7 @@ #define FIO_BITMAP_H #include +#include "types.h" struct axmap; struct axmap *axmap_new(unsigned long nr_bits); @@ -10,8 +11,7 @@ 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); -uint64_t axmap_first_free(struct axmap *axmap); +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);