[go: up one dir, main page]

File: axmap.h

package info (click to toggle)
fio 3.39-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,924 kB
  • sloc: ansic: 80,931; python: 9,252; sh: 5,843; makefile: 813; yacc: 204; lex: 184
file content (17 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef FIO_BITMAP_H
#define FIO_BITMAP_H

#include <inttypes.h>
#include "types.h"

struct axmap;
struct axmap *axmap_new(uint64_t nr_bits);
void axmap_free(struct axmap *bm);

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);
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);

#endif