| 96 | |
| 97 | |
| 98 | static inline my_bool bitmap_is_set(const MY_BITMAP *map, uint bit) |
| 99 | { |
| 100 | DBUG_ASSERT(bit < map->n_bits); |
| 101 | return ((uchar*)map->bitmap)[bit / 8] & (1 << (bit & 7)); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | Quite unlike other C comparison functions ending with 'cmp', e.g. memcmp(), |