7 #ifndef UBICLIB_BITMAP_H_
8 #define UBICLIB_BITMAP_H_
23 #include <ubinos_config.h>
30 #define BITMAP_DEPTH_MAX 4
46 #define BITMAP_INITVALUE(bitsize) { \
73 unsigned int bufsize);
int bitmap_setbit(bitmap_pt bitmap, unsigned int index, int value)
unsigned int bitmap_getmapsize(unsigned int bitsize)
int bitmap_create(bitmap_pt *bitmap_p, unsigned int bitsize)
unsigned int bitmap_getmsb(bitmap_pt bitmap)
#define BITMAP_DEPTH_MAX
Definition: bitmap.h:30
int bitmap_init(bitmap_pt bitmap, unsigned int bitsize, unsigned char *buf, unsigned int bufsize)
unsigned int bitmap_getlsb(bitmap_pt bitmap)
unsigned int bitmap_getmemsize(unsigned int bitsize)
int bitmap_getbit(bitmap_pt bitmap, unsigned int index)
unsigned int bitmap_getlsb2(bitmap_pt bitmap, unsigned int index)
int bitmap_setbitall(bitmap_pt bitmap, int value)
struct _bitmap_t bitmap_t
int bitmap_delete(bitmap_pt *bitmap_p)
bitmap_t * bitmap_pt
Definition: bitmap.h:43
unsigned int level_depth
Definition: bitmap.h:38
unsigned int * map
Definition: bitmap.h:36
unsigned int level_offset_a[BITMAP_DEPTH_MAX]
Definition: bitmap.h:39
unsigned int bitsize
Definition: bitmap.h:35
unsigned int map_bytesize
Definition: bitmap.h:37