42
42
extern void create_last_word_mask(MY_BITMAP *map);
43
extern bool bitmap_init(MY_BITMAP *map, my_bitmap_map *buf, uint n_bits,
43
extern bool bitmap_init(MY_BITMAP *map, my_bitmap_map *buf, uint32_t n_bits,
45
45
extern bool bitmap_is_clear_all(const MY_BITMAP *map);
46
extern bool bitmap_is_prefix(const MY_BITMAP *map, uint prefix_size);
46
extern bool bitmap_is_prefix(const MY_BITMAP *map, uint32_t prefix_size);
47
47
extern bool bitmap_is_set_all(const MY_BITMAP *map);
48
48
extern bool bitmap_is_subset(const MY_BITMAP *map1, const MY_BITMAP *map2);
49
49
extern bool bitmap_is_overlapping(const MY_BITMAP *map1,
50
50
const MY_BITMAP *map2);
51
extern bool bitmap_test_and_set(MY_BITMAP *map, uint bitmap_bit);
52
extern bool bitmap_test_and_clear(MY_BITMAP *map, uint bitmap_bit);
53
extern bool bitmap_fast_test_and_clear(MY_BITMAP *map, uint bitmap_bit);
54
extern bool bitmap_fast_test_and_set(MY_BITMAP *map, uint bitmap_bit);
55
extern uint bitmap_set_next(MY_BITMAP *map);
56
extern uint bitmap_get_first(const MY_BITMAP *map);
57
extern uint bitmap_get_first_set(const MY_BITMAP *map);
58
extern uint bitmap_bits_set(const MY_BITMAP *map);
51
extern bool bitmap_test_and_set(MY_BITMAP *map, uint32_t bitmap_bit);
52
extern bool bitmap_test_and_clear(MY_BITMAP *map, uint32_t bitmap_bit);
53
extern bool bitmap_fast_test_and_clear(MY_BITMAP *map, uint32_t bitmap_bit);
54
extern bool bitmap_fast_test_and_set(MY_BITMAP *map, uint32_t bitmap_bit);
55
extern uint32_t bitmap_set_next(MY_BITMAP *map);
56
extern uint32_t bitmap_get_first(const MY_BITMAP *map);
57
extern uint32_t bitmap_get_first_set(const MY_BITMAP *map);
58
extern uint32_t bitmap_bits_set(const MY_BITMAP *map);
59
59
extern void bitmap_free(MY_BITMAP *map);
60
extern void bitmap_set_above(MY_BITMAP *map, uint from_byte, uint use_bit);
61
extern void bitmap_set_prefix(MY_BITMAP *map, uint prefix_size);
60
extern void bitmap_set_above(MY_BITMAP *map, uint32_t from_byte, uint32_t use_bit);
61
extern void bitmap_set_prefix(MY_BITMAP *map, uint32_t prefix_size);
62
62
extern void bitmap_intersect(MY_BITMAP *map, const MY_BITMAP *map2);
63
63
extern void bitmap_subtract(MY_BITMAP *map, const MY_BITMAP *map2);
64
64
extern void bitmap_union(MY_BITMAP *map, const MY_BITMAP *map2);
66
66
extern void bitmap_invert(MY_BITMAP *map);
67
67
extern void bitmap_copy(MY_BITMAP *map, const MY_BITMAP *map2);
69
extern uint bitmap_lock_set_next(MY_BITMAP *map);
70
extern void bitmap_lock_clear_bit(MY_BITMAP *map, uint bitmap_bit);
69
extern uint32_t bitmap_lock_set_next(MY_BITMAP *map);
70
extern void bitmap_lock_clear_bit(MY_BITMAP *map, uint32_t bitmap_bit);
72
extern uint bitmap_lock_bits_set(const MY_BITMAP *map);
72
extern uint32_t bitmap_lock_bits_set(const MY_BITMAP *map);
73
73
extern bool bitmap_lock_is_set_all(const MY_BITMAP *map);
74
extern uint bitmap_lock_get_first(const MY_BITMAP *map);
75
extern uint bitmap_lock_get_first_set(const MY_BITMAP *map);
74
extern uint32_t bitmap_lock_get_first(const MY_BITMAP *map);
75
extern uint32_t bitmap_lock_get_first_set(const MY_BITMAP *map);
76
76
extern bool bitmap_lock_is_subset(const MY_BITMAP *map1,
77
77
const MY_BITMAP *map2);
78
extern bool bitmap_lock_is_prefix(const MY_BITMAP *map, uint prefix_size);
79
extern bool bitmap_lock_is_set(const MY_BITMAP *map, uint bitmap_bit);
78
extern bool bitmap_lock_is_prefix(const MY_BITMAP *map, uint32_t prefix_size);
79
extern bool bitmap_lock_is_set(const MY_BITMAP *map, uint32_t bitmap_bit);
80
80
extern bool bitmap_lock_is_clear_all(const MY_BITMAP *map);
81
81
extern bool bitmap_lock_cmp(const MY_BITMAP *map1, const MY_BITMAP *map2);
82
82
extern void bitmap_lock_set_all(MY_BITMAP *map);
83
83
extern void bitmap_lock_clear_all(MY_BITMAP *map);
84
extern void bitmap_lock_set_bit(MY_BITMAP *map, uint bitmap_bit);
85
extern void bitmap_lock_flip_bit(MY_BITMAP *map, uint bitmap_bit);
86
extern void bitmap_lock_set_prefix(MY_BITMAP *map, uint prefix_size);
84
extern void bitmap_lock_set_bit(MY_BITMAP *map, uint32_t bitmap_bit);
85
extern void bitmap_lock_flip_bit(MY_BITMAP *map, uint32_t bitmap_bit);
86
extern void bitmap_lock_set_prefix(MY_BITMAP *map, uint32_t prefix_size);
87
87
extern void bitmap_lock_intersect(MY_BITMAP *map, const MY_BITMAP *map2);
88
88
extern void bitmap_lock_subtract(MY_BITMAP *map, const MY_BITMAP *map2);
89
89
extern void bitmap_lock_union(MY_BITMAP *map, const MY_BITMAP *map2);