42
42
extern void create_last_word_mask(MY_BITMAP *map);
43
extern my_bool bitmap_init(MY_BITMAP *map, my_bitmap_map *buf, uint n_bits,
45
extern my_bool bitmap_is_clear_all(const MY_BITMAP *map);
46
extern my_bool bitmap_is_prefix(const MY_BITMAP *map, uint prefix_size);
47
extern my_bool bitmap_is_set_all(const MY_BITMAP *map);
48
extern my_bool bitmap_is_subset(const MY_BITMAP *map1, const MY_BITMAP *map2);
49
extern my_bool bitmap_is_overlapping(const MY_BITMAP *map1,
43
extern bool bitmap_init(MY_BITMAP *map, my_bitmap_map *buf, uint n_bits,
45
extern bool bitmap_is_clear_all(const MY_BITMAP *map);
46
extern bool bitmap_is_prefix(const MY_BITMAP *map, uint prefix_size);
47
extern bool bitmap_is_set_all(const MY_BITMAP *map);
48
extern bool bitmap_is_subset(const MY_BITMAP *map1, const MY_BITMAP *map2);
49
extern bool bitmap_is_overlapping(const MY_BITMAP *map1,
50
50
const MY_BITMAP *map2);
51
extern my_bool bitmap_test_and_set(MY_BITMAP *map, uint bitmap_bit);
52
extern my_bool bitmap_test_and_clear(MY_BITMAP *map, uint bitmap_bit);
53
extern my_bool bitmap_fast_test_and_clear(MY_BITMAP *map, uint bitmap_bit);
54
extern my_bool bitmap_fast_test_and_set(MY_BITMAP *map, uint bitmap_bit);
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
55
extern uint bitmap_set_next(MY_BITMAP *map);
56
56
extern uint bitmap_get_first(const MY_BITMAP *map);
57
57
extern uint bitmap_get_first_set(const MY_BITMAP *map);
70
70
extern void bitmap_lock_clear_bit(MY_BITMAP *map, uint bitmap_bit);
72
72
extern uint bitmap_lock_bits_set(const MY_BITMAP *map);
73
extern my_bool bitmap_lock_is_set_all(const MY_BITMAP *map);
73
extern bool bitmap_lock_is_set_all(const MY_BITMAP *map);
74
74
extern uint bitmap_lock_get_first(const MY_BITMAP *map);
75
75
extern uint bitmap_lock_get_first_set(const MY_BITMAP *map);
76
extern my_bool bitmap_lock_is_subset(const MY_BITMAP *map1,
76
extern bool bitmap_lock_is_subset(const MY_BITMAP *map1,
77
77
const MY_BITMAP *map2);
78
extern my_bool bitmap_lock_is_prefix(const MY_BITMAP *map, uint prefix_size);
79
extern my_bool bitmap_lock_is_set(const MY_BITMAP *map, uint bitmap_bit);
80
extern my_bool bitmap_lock_is_clear_all(const MY_BITMAP *map);
81
extern my_bool bitmap_lock_cmp(const MY_BITMAP *map1, 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);
80
extern bool bitmap_lock_is_clear_all(const MY_BITMAP *map);
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
84
extern void bitmap_lock_set_bit(MY_BITMAP *map, uint bitmap_bit);
146
146
#define bitmap_is_set(MAP, BIT) _bitmap_is_set(MAP, BIT)
149
static inline my_bool bitmap_cmp(const MY_BITMAP *map1, const MY_BITMAP *map2)
149
static inline bool bitmap_cmp(const MY_BITMAP *map1, const MY_BITMAP *map2)
151
151
*(map1)->last_word_ptr|= (map1)->last_word_mask;
152
152
*(map2)->last_word_ptr|= (map2)->last_word_mask;