Return true if bitmaps are equal */
| 119 | |
| 120 | /* Return true if bitmaps are equal */ |
| 121 | static inline my_bool bitmap_cmp(const MY_BITMAP *map1, const MY_BITMAP *map2) |
| 122 | { |
| 123 | DBUG_ASSERT(map1->n_bits == map2->n_bits); |
| 124 | return (memcmp(map1->bitmap, map2->bitmap, |
| 125 | my_bitmap_buffer_size(map1)) == 0); |
| 126 | } |
| 127 | |
| 128 | #define bitmap_clear_all(MAP) \ |
| 129 | { memset((MAP)->bitmap, 0, my_bitmap_buffer_size(MAP)); } |
no outgoing calls