Files
scoutfs/utils/src/bitmap.h
Zach Brown bd54995599 Add a simple native bitmap
Nothing fancy at all.

Signed-off-by: Zach Brown <zab@versity.com>
2017-04-18 14:20:43 -07:00

10 lines
237 B
C

#ifndef _BITMAP_H_
#define _BITMAP_H_
void set_bit(unsigned long *bits, u64 nr);
void clear_bit(unsigned long *bits, u64 nr);
u64 find_next_set_bit(unsigned long *start, u64 from, u64 total);
unsigned long *alloc_bits(u64 max);
#endif