Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1780
Line 39... Line 39...
39
#include <typedefs.h>
39
#include <typedefs.h>
40
 
40
 
41
#define BITS2BYTES(bits)    (bits ? ((((bits)-1)>>3)+1) : 0)
41
#define BITS2BYTES(bits)    (bits ? ((((bits)-1)>>3)+1) : 0)
42
 
42
 
43
typedef struct {
43
typedef struct {
44
    __u8 *map;
44
    uint8_t *map;
45
    count_t bits;
45
    count_t bits;
46
} bitmap_t;
46
} bitmap_t;
47
 
47
 
48
extern void bitmap_initialize(bitmap_t *bitmap, __u8 *map, count_t bits);
48
extern void bitmap_initialize(bitmap_t *bitmap, uint8_t *map, count_t bits);
49
extern void bitmap_set_range(bitmap_t *bitmap, index_t start, count_t bits);
49
extern void bitmap_set_range(bitmap_t *bitmap, index_t start, count_t bits);
50
extern void bitmap_clear_range(bitmap_t *bitmap, index_t start, count_t bits);
50
extern void bitmap_clear_range(bitmap_t *bitmap, index_t start, count_t bits);
51
extern void bitmap_copy(bitmap_t *dst, bitmap_t *src, count_t bits);
51
extern void bitmap_copy(bitmap_t *dst, bitmap_t *src, count_t bits);
52
 
52
 
53
#endif
53
#endif